-
Notifications
You must be signed in to change notification settings - Fork 1.1k
refactor!(otlp-grpc-exporter-base): remove headers from gRPC config type #6487
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
Changes from 4 commits
05de16b
a9356c7
f45ce74
d462ed7
6b10bfa
dff2829
6241597
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ For notes on migrating to 2.x / 0.200.x see [the upgrade guide](doc/upgrade-to-2 | |
|
|
||
| * fix(opentelemetry-instrumentation): improve `_warnOnPreloadedModules` function not to show warning logs when the module is not marked as loaded [#6095](https://github.com/open-telemetry/opentelemetry-js/pull/6095) @rlj1202 | ||
| * fix(sdk-trace-base): derive internal `SpanOptions` from API type to prevent drift [#6478](https://github.com/open-telemetry/opentelemetry-js/pull/6478) @overbalance | ||
| * fix(span): enforce `attributePerEventCountLimit`, `attributePerLinkCountLimit`, `linkCountLimit`, and `attributeValueLengthLimit` for event/link attributes [#6479](https://github.com/open-telemetry/opentelemetry-js/pull/6479) @overbalance | ||
| * fix(otlp-grpc-exporter-base): remove `headers` from gRPC exporter config type, passing headers now results in a compile-time error instead of being silently ignored [#6487](https://github.com/open-telemetry/opentelemetry-js/pull/6487) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is in the wrong place and replaces an existing entry rather than creating a new one. This should be under the |
||
|
|
||
| ### :books: Documentation | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,16 +4,15 @@ | |
| */ | ||
|
|
||
| import type { ChannelCredentials, Metadata } from '@grpc/grpc-js'; | ||
|
|
||
| import type { | ||
| CompressionAlgorithm, | ||
| OTLPExporterConfigBase, | ||
| } from '@opentelemetry/otlp-exporter-base'; | ||
| import type { CompressionAlgorithm } from '@opentelemetry/otlp-exporter-base'; | ||
|
|
||
| /** | ||
| * OTLP Exporter Config for Node | ||
| */ | ||
| export interface OTLPGRPCExporterConfigNode extends OTLPExporterConfigBase { | ||
| export interface OTLPGRPCExporterConfigNode { | ||
| url?: string; | ||
| concurrencyLimit?: number; | ||
| timeoutMillis?: number; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These typically come from
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Switched to
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm, IMO it's a positive thing that they diverge:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That makes sense! So should I revert back to the original approach (manually listing the fields with TS types) and drop the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can do that in a follow up PR, your current change addresses what the linked issue was about. :)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure! |
||
| credentials?: ChannelCredentials; | ||
| metadata?: Metadata; | ||
| compression?: CompressionAlgorithm; | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated change |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert this unintended change