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

[Exporter.OpenTelemetryProtocol] SdkOptionLimits - fix defaults #3978

Merged

Conversation

Kielek
Copy link
Contributor

@Kielek Kielek commented Dec 7, 2022

Fixes #3962.

Changes

Fix default values for OTEL_ATTRIBUTE_COUNT_LIMIT,
OTEL_ATTRIBUTE_COUNT_LIMIT,
OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,
OTEL_SPAN_EVENT_COUNT_LIMIT,
OTEL_SPAN_LINK_COUNT_LIMIT,
OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT,
OTEL_LINK_ATTRIBUTE_COUNT_LIMIT. All of them are defaulted to 128.

  • Appropriate CHANGELOG.md updated for non-trivial changes
  • [ ] Design discussion issue #
  • [ ] Changes in public API reviewed

@Kielek Kielek force-pushed the sdk-limit-options-sync-with-spec branch from 94c42dc to 0c215d6 Compare December 7, 2022 06:49
@codecov
Copy link

codecov bot commented Dec 7, 2022

Codecov Report

Merging #3978 (2747173) into main (6fa6700) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3978      +/-   ##
==========================================
- Coverage   85.58%   85.54%   -0.05%     
==========================================
  Files         288      288              
  Lines       11070    11080      +10     
==========================================
+ Hits         9474     9478       +4     
- Misses       1596     1602       +6     
Impacted Files Coverage Δ
...elemetryProtocol/Implementation/SdkLimitOptions.cs 100.00% <100.00%> (ø)
...tation/OpenTelemetryProtocolExporterEventSource.cs 85.00% <0.00%> (-15.00%) ⬇️
...porter.OpenTelemetryProtocol/OtlpMetricExporter.cs 72.72% <0.00%> (-13.64%) ⬇️
...p/Implementation/HttpInstrumentationEventSource.cs 72.00% <0.00%> (-4.00%) ⬇️
...Telemetry/Internal/SelfDiagnosticsEventListener.cs 97.65% <0.00%> (+0.78%) ⬆️

@Kielek Kielek marked this pull request as ready for review December 7, 2022 07:00
@Kielek Kielek requested a review from a team December 7, 2022 07:00
Copy link
Member

@alanwest alanwest left a comment

Choose a reason for hiding this comment

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

LGTM. We'd originally punted on adopting the defaults because technically this could be considered a breaking change. Though, I'm not really concerned 128 is a pretty generous default and I'd suspect have low chance of impacting many users. Also, I think it's fair to frame this as a bug fix.

@utpilla utpilla merged commit f0f5158 into open-telemetry:main Dec 8, 2022
@Kielek Kielek deleted the sdk-limit-options-sync-with-spec branch December 9, 2022 05:32
pjanotti pushed a commit to open-telemetry/opentelemetry-dotnet-instrumentation that referenced this pull request Dec 13, 2022
* Bump OTel to 1.4.0-rc.1

* ConfigureResource api was removed in open-telemetry/opentelemetry-dotnet#3999

* Update limits based on
open-telemetry/opentelemetry-dotnet#3978

* Fix build structure
OpenTelemetry references OpenTelemetry.Extensions.DependencyInjection package

* Fix ModuleTests

* Handle AspNetCore metrics changes
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.

Span limits have wrong defaults
4 participants