All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cloudfoundry.multiapps.controller.process.dynatrace.DynatracePublisher Maven / Gradle / Ivy

There is a newer version: 1.183.0
Show newest version
package org.cloudfoundry.multiapps.controller.process.dynatrace;

import java.text.MessageFormat;

import jakarta.inject.Named;

import org.cloudfoundry.multiapps.controller.core.util.LoggingUtil;
import org.cloudfoundry.multiapps.controller.process.Messages;
import org.slf4j.Logger;

@Named
public class DynatracePublisher {

    public void publishProcessEvent(DynatraceProcessEvent dynatraceProcessEvent, Logger logger) {
        LoggingUtil.logWithCorrelationId(dynatraceProcessEvent.getProcessId(),
                                         () -> logger.info(MessageFormat.format(Messages.REGISTERING_PROCESS_EVENT_IN_DYNATRACE,
                                                                                dynatraceProcessEvent)));
    }

    public void publishProcessDuration(DynatraceProcessDuration dynatraceProcessDuration, Logger logger) {
        LoggingUtil.logWithCorrelationId(dynatraceProcessDuration.getProcessId(),
                                         () -> logger.info(MessageFormat.format(Messages.REGISTERING_PROCESS_DURATION_IN_DYNATRACE,
                                                                                dynatraceProcessDuration)));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy