openobserve icon indicating copy to clipboard operation
openobserve copied to clipboard

How to push traces to a specific stream using openTelemetry?

Open chiikin opened this issue 2 years ago β€’ 1 comments

Describe the problem that you experienced

As the title issue: How to push traces to a specific stream using openTelemetry?

As shown in the figure below, I tried to push traces through openTelemetry, but the actual push path is β€œhttp://192.168.122.220:5081/api/default/traces”, where the port is incorrect.

image

In fact, I also need to set zinc-org-id = default in the headers, but the key of the header is different from the default configuration of the environment variable.

Finally, I also found that I do not know how to push to a specific stream.

Enter the URL of the topic with the problem

No response

Describe what you were looking for in the documentation

No response

Describe the actions that led you to experience the problem

No response

Describe what you want to experience that would fix the problem

No response

Add a screenshot if that helps illustrate the problem

No response

If this problem caused an exception or error, please paste it here

No response

If the problem is browser-specific, please specify the device, OS, browser, and version

No response

Provide any additional information here in as much as detail as you can

No response

chiikin avatar Jun 20 '23 04:06 chiikin

All traces are currently stored in a single stream in an organization, which cannot be changed for now. We would recommend you use the service name for categorization.

prabhatsharma avatar Jun 20 '23 14:06 prabhatsharma

All traces are currently stored in a single stream in an organization, which cannot be changed for now. We would recommend you use the service name for categorization.

Is there a plan to add this feature? Can the document instructions be updated?

chiikin avatar Jun 25 '23 01:06 chiikin

@chiikin thank you for your feedback..we would update our documentation.For traces we support two mechanisms:

  • JSON over HTTP , which is using end point : http://hostname:5080/api/default/traces
  • for GRPC end point is http://hostname:5081 & as there is no way to provide organisation to which traces should be sent we need two headers Authorization & zinc-org-id

oasisk avatar Jun 26 '23 08:06 oasisk