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

feat(otel): Add @opentelemetry/core package #6108

Merged
merged 2 commits into from Nov 2, 2022
Merged

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Nov 2, 2022

ref: #6107

Not a 100% sure about adding this as a peer dep, since this will by included as a child dep of @opentelemetry/sdk-trace-base

This is needed for the propogator functionality.
@AbhiPrasad AbhiPrasad self-assigned this Nov 2, 2022
@AbhiPrasad AbhiPrasad mentioned this pull request Nov 2, 2022
5 tasks
@AbhiPrasad AbhiPrasad added this to the OpenTelemetry Support milestone Nov 2, 2022
@AbhiPrasad AbhiPrasad requested a review from mydea November 2, 2022 09:21
@mydea
Copy link
Member

mydea commented Nov 2, 2022

yeah, this is the same as with semantic-conventions. IMHO we should add it as peer dep, but not as dev dependency, then it is pulled in from the other dev dependencies - at least that's how we did it for semantic-conventions, and it seems to work fine there!

"@opentelemetry/sdk-trace-base": "1.x",
"@opentelemetry/semantic-conventions": "1.x"
},
"devDependencies": {
"@opentelemetry/api": "^1.2.0",
"@opentelemetry/core": "^1.7.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m: I think we can only add this to peerDependencies and leave it as a transitive dependency in dev deps. but also OK to add it explicitly, I guess! If we want to leave it here, we should also add @opentelemetry/semantic-conventions as devDependency for symmetry!

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) November 2, 2022 10:55
@AbhiPrasad AbhiPrasad merged commit a1a6450 into master Nov 2, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-otel-core-add branch November 2, 2022 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants