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

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

Closed
seanyu4296 opened this issue Jun 13, 2021 · 7 comments · Fixed by #2491
Closed
Assignees
Labels
bug Something isn't working

Comments

@seanyu4296
Copy link

seanyu4296 commented Jun 13, 2021

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

I am also unsure what should be the practice now? Should this be how we configure serviceName now?
#2271

@seanyu4296 seanyu4296 added the bug Something isn't working label Jun 13, 2021
@delaneyj
Copy link

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

@seanyu4296
Copy link
Author

Thanks @delaneyj 🙏

@dyladan
Copy link
Member

dyladan commented Jun 16, 2021

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

I am also unsure what should be the practice now? Should this be how we configure serviceName now?
#2271

The first one was allowed because of the as any on line 64.

The second one was allowed because examples aren't type checked.

@seanyu4296
Copy link
Author

Can we remove the any then?

Ohhh I see how can we enable type checking in the examples do we add some github actions

@dyladan
Copy link
Member

dyladan commented Jun 16, 2021

The examples aren't written in typescript. in order to enable type checking, they would need to be modified for it. This is something we've talked about in the past but just haven't gotten to

@dyladan
Copy link
Member

dyladan commented Jun 16, 2021

Can we remove the any then?

Sure do you want to make a PR?

@mustafain117
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants