Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Provide Dynatrace Exporter#170

Merged
KarstenSchnitter merged 5 commits into
mainSAP/cf-java-logging-support:mainfrom
dynatrace-exporterSAP/cf-java-logging-support:dynatrace-exporterCopy head branch name to clipboard
Feb 1, 2024
Merged

Provide Dynatrace Exporter#170
KarstenSchnitter merged 5 commits into
mainSAP/cf-java-logging-support:mainfrom
dynatrace-exporterSAP/cf-java-logging-support:dynatrace-exporterCopy head branch name to clipboard

Conversation

@KarstenSchnitter

Copy link
Copy Markdown
Contributor

Adds a DynatraceMetricsExporter to the provided exporters. This exporter will parse CF bindings for a Dynatrace service binding. If found, it will export metrics to the API endpoint. For this to work, the API token field in the service credentials needs to be provided with otel.javaagent.extension.sap.cf.binding.dynatrace.metrics.token-name.

Several refacotrings align Dynatrace and Cloud Logging exporters.

Adds a DynatraceMetricsExporter to the provided exporters. This exporter will parse CF
bindings for a Dynatrace service binding. If found, it will export metrics to the API endpoint.
For this to work, the API token field in the service credentials needs to be provided with
`otel.javaagent.extension.sap.cf.binding.dynatrace.metrics.token-name`.

Several refacotrings align Dynatrace and Cloud Logging exporters.

Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
Use the correct protocol and header to send data to Dynatrace.
Extend the sample manifest by Dynatrace configuration.

Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
Comment thread cf-java-logging-support-opentelemetry-agent-extension/README.md Outdated
Comment on lines 76 to 77
The difference between `cloud-logging` and `otlp` exporters are explained in an own [section](#implementation-differences-between-cloud-logging-and-otlp-exporter).
The benefit of the `cloud-logging` exporter is, that it can be combined with a different configuration of the `otlp` exporter.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would assume this also applies for Dynatrace, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there is no default configuration for the otlp exporter and Dynatrace. You need to use the dynatrace exporter explicitly. Note, that otlp is considered to be a legacy/fallback approach. Since Cloud Logging is always available, it is used as the default.

Comment on lines +23 to +25
public CloudLoggingServicesProvider(ConfigProperties config) {
this(config, new CloudFoundryServicesAdapter(new CfEnv()));
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like the simplification that comes from the refactoring


assertTrue(properties.isEmpty());
}
} No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

Missing new line :-)

Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
@juergen-walter juergen-walter self-requested a review February 1, 2024 16:07
@KarstenSchnitter KarstenSchnitter merged commit dcb11c1 into main Feb 1, 2024
@KarstenSchnitter KarstenSchnitter deleted the dynatrace-exporter branch February 1, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.