question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example and tests for otel collector exporter is not updated still uses `serviceName`

See original GitHub issue

The opentelemetry collector exporter is not updated. In examples and tests, It still uses serviceName for config and looking at the codebase it does not expose that anymore.

I wonder how these got in if we use typescript

https://github.com/open-telemetry/opentelemetry-js/blob/a3b77387012a5f53c193efdefcbf5f6272876e4d/packages/opentelemetry-exporter-collector/test/node/CollectorTraceExporter.test.ts#L61

https://github.com/open-telemetry/opentelemetry-js/blob/a3b77387012a5f53c193efdefcbf5f6272876e4d/examples/collector-exporter-node/tracing.js#L15

I am also unsure what should be the practice now? Should this be how we configure serviceName now? https://github.com/open-telemetry/opentelemetry-js/issues/2271

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mustafain117commented, Sep 21, 2021

@dyladan Can you please assign this to me CC: @alolita

1reaction
delaneyjcommented, Jun 14, 2021

In the updated example just a heads up

import { ResourceAttributes } from '@opentelemetry/semantic-conventions'
import { Resource } from '@opentelemetry/resources'

both libraries also are still on 0.20.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Service Name is displayed as otlpresourcenoattributes when ...
The issue with mapping the attributes produced by the instrumentation libraries may actually be on the opentelemetry-collector level. Not sure which attributes ...
Read more >
open-telemetry/opentelemetry-service - Gitter
I've started to use opentelemetry-collector and java-autoinstr-agent (for tracing) and I really like it. I had possibility to test them little bit. Mostly...
Read more >
OpenTelemetry "no collector" setup not working for the New ...
I'm trying to setup new relic to use opentelemetry. ... "no collector" setup not working for the New Relic OpenTelemetry Java exporter.
Read more >
Troubleshoot the Collector - Splunk Documentation
The collector is improperly sized, resulting in the Splunk Distribution of OpenTelemetry Collector being unable to process and export the data as fast...
Read more >
Configuration | OpenTelemetry
The service section is used to configure what components are enabled in the Collector based on the configuration found in the receivers, processors,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found