Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding custom items to service-map traces #2941

Open
skydesoricellism opened this issue Jun 27, 2023 · 0 comments
Open

Adding custom items to service-map traces #2941

skydesoricellism opened this issue Jun 27, 2023 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@skydesoricellism
Copy link

Is your feature request related to a problem? Please describe.
Traces coming from the otel-trace-pipeline and forwarded to the service-map-pipeline don't propagate some items. It could be a great improvement if custom items could be added in the service-map-pipeline.

Describe the solution you'd like
The trace I recieve at the moment from the service-map-pipeline is the following:

  {
    "_index" : "otel-v1-apm-service-map",
    "_type" : "_doc",
    "_id" : "4tvYCIifyVbGYfH/9iaP/g==",
    "_score" : 1.0,
    "_source" : {
      "serviceName" : "order",
      "kind" : "SPAN_KIND_INTERNAL",
      "destination" : {
        "resource" : "prepareOrderManifest",
        "domain" : "inventory"
      },
      "target" : null,
      "traceGroupName" : "createOrder",
      "hashId" : "4tvYCIifyVbGYfH/9iaP/g=="
    }
  }

This trace should be manipulated such that a "tenant" item is added. "tenant" is already available as a resource attribute within the trace in the otel-trace-pipeline :

  {
    "_index" : "otel-v1-apm-service-map",
    "_type" : "_doc",
    "_id" : "4tvYCIifyVbGYfH/9iaP/g==",
    "_score" : 1.0,
    "_source" : {
      "serviceName" : "order",
      "kind" : "SPAN_KIND_INTERNAL",
      "destination" : {
        "resource" : "prepareOrderManifest",
        "domain" : "inventory"
      },
      "target" : null,
      "traceGroupName" : "createOrder",
      "hashId" : "4tvYCIifyVbGYfH/9iaP/g==",
      "tenant" : "test1"
    }
  }

Additional context
Add any other context or screenshots about the feature request here.

@asifsmohammed asifsmohammed added question Further information is requested enhancement New feature or request and removed untriaged labels Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
Development

No branches or pull requests

2 participants