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

chore: bump otlp trace exporters to v1 #2626

Merged
merged 6 commits into from
Dec 21, 2021

Conversation

rauno56
Copy link
Member

@rauno56 rauno56 commented Nov 17, 2021

Which problem is this PR solving?

The trace exporters are currently experimental even though we don't really consider them to be as such.

Short description of the changes

This moves the code from experimental folder to the main one changing as little on the way as possible.

  • Since it already breaks all the links pointing to it - I'd love to remove the opentelemetry- prefix from the folder. Are we open to doing so?

@codecov
Copy link

codecov bot commented Nov 17, 2021

Codecov Report

Merging #2626 (413567b) into main (8b9935b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2626   +/-   ##
=======================================
  Coverage   92.52%   92.52%           
=======================================
  Files         144      144           
  Lines        5177     5177           
  Branches     1102     1102           
=======================================
  Hits         4790     4790           
  Misses        387      387           
Impacted Files Coverage Δ
...s/exporter-trace-otlp-http/src/OTLPExporterBase.ts 92.15% <ø> (ø)
packages/exporter-trace-otlp-http/src/transform.ts 88.69% <ø> (ø)
packages/exporter-trace-otlp-http/src/types.ts 100.00% <ø> (ø)
packages/exporter-trace-otlp-http/src/util.ts 100.00% <ø> (ø)
...elemetry-exporter-trace-otlp-http/src/transform.ts
...opentelemetry-exporter-trace-otlp-http/src/util.ts
...pentelemetry-exporter-trace-otlp-http/src/types.ts
...y-exporter-trace-otlp-http/src/OTLPExporterBase.ts
... and 2 more

@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/exporter-trace-otlp-grpc",
"version": "0.27.0",
"version": "1.0.0",
Copy link
Member

Choose a reason for hiding this comment

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

Version must match the lerna.json version

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Changed that. I did think that we version the packages independently though... 🤔

Copy link
Member

Choose a reason for hiding this comment

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

No we only have 2 versions, the experimental and the stable versions are different. You may be thinking of contrib where the versions are completely independent.

@rauno56
Copy link
Member Author

rauno56 commented Nov 18, 2021

Tests pass with the package linked.
I don't see any significant unpublished changes - any ideas, @dyladan?

Copy link
Member

@vmarchaud vmarchaud left a comment

Choose a reason for hiding this comment

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

lgtm, however i don't understand why experimentals are failling even after removing tsconfig refs

@dyladan
Copy link
Member

dyladan commented Nov 29, 2021

Tests pass with the package linked. I don't see any significant unpublished changes - any ideas, @dyladan?

Sorry for such a late reply here. I found this reference https://github.com/Rauno56/opentelemetry-js/blob/chore/stable-otlp/experimental/packages/opentelemetry-exporter-metrics-otlp-http/tsconfig.esm.json#L13

@dyladan
Copy link
Member

dyladan commented Dec 6, 2021

Tests are still failing but at least the build passes now. I haven't looked into the test failure yet but do you know what might be causing it?

@rauno56
Copy link
Member Author

rauno56 commented Dec 13, 2021

It might be because of some unpublished changes to the metrics exporter - it linked the packages before so that the tests could be in sync with the dev version of the implementation. Now when the packages are separated it relies on the published versions.

@vmarchaud
Copy link
Member

It might be because of some unpublished changes to the metrics exporter - it linked the packages before so that the tests could be in sync with the dev version of the implementation. Now when the packages are separated it relies on the published versions.

I think we already dicussed skippign tests for metrics exporter while we are updating the SDK @dyladan ? i don't see a problem WDYT ?

@dyladan
Copy link
Member

dyladan commented Dec 13, 2021

The published version should be the same as the last dev version. we published right before removing it. i'm not sure why that would cause the test to fail

@rauno56
Copy link
Member Author

rauno56 commented Dec 15, 2021

Redid the move to resolve conflicts...

Copy link
Member

@vmarchaud vmarchaud left a comment

Choose a reason for hiding this comment

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

lgtm, just need to decide what to do with tests

@rauno56
Copy link
Member Author

rauno56 commented Dec 20, 2021

Yeah... I'm a bit lost here. After doing a clean install on just metrics grpc exporter, the tests pass locally.

Until I update to grpc.js@1.4.4 everywhere(to match the versions) I cannot even compile the packages locally:

Type 'import("/[..]/opentelemetry-js/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/node_modules/@grpc/grpc-js/build/src/metadata").Metadata'
     is not assignable to type 
     'import("/[..]/opentelemetry-js/experimental/node_modules/@grpc/grpc-js/build/src/metadata").Metadata'.

I'm following the CI process step-by-step. I'm afraid the issue is caused by some lerna-magic.

@rauno56
Copy link
Member Author

rauno56 commented Dec 20, 2021

Alright... as you can see... 🎉 ee61e1e

@rauno56 rauno56 marked this pull request as ready for review December 20, 2021 13:43
@rauno56 rauno56 requested a review from a team as a code owner December 20, 2021 13:43
Copy link
Member

@dyladan dyladan left a comment

Choose a reason for hiding this comment

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

LGTM

If you want to remove the opentelemetry- prefix i'm fine with it.

@rauno56
Copy link
Member Author

rauno56 commented Dec 21, 2021

If you want to remove the opentelemetry- prefix i'm fine with it.

👍 Will do.

@dyladan dyladan added the enhancement New feature or request label Dec 21, 2021
@dyladan dyladan merged commit 89f862b into open-telemetry:main Dec 21, 2021
@rauno56 rauno56 deleted the chore/stable-otlp branch December 21, 2021 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants