Skip to content

not expected splunk's otel contribution #1236

@krismarc

Description

@krismarc

In v5, Splunk's OTEL contribiutes even if not expected.

That's most likely because of

vcapServices.HasServiceByNamePattern("otel") {

This causes additional java opt to be added that forces otel.service.name to be CF's app name, not the one set in otel's user-provided service payload. (both are present, however later one takes precedence)

opts = append(opts, fmt.Sprintf("-Dotel.service.name=%s", appName))

Ultimetly, if there's otel named user-provided service, both open-telemetry and splunk's otel contribiute and -Dotel.service.name is added twice with different values if otel.service.name is given in user-provided service payload.

if _, hasServiceName := service.Credentials["otel.service.name"]; !hasServiceName {

https://github.com/cloudfoundry/java-buildpack/blob/main/docs/framework-splunk_otel_java_agent.md

The service name MUST contain the string splunk-o11y.

..which is currently not really true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions