-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Performance improvements for attribute value AsStringSlice
, AsFloat64Slice
, AsInt64Slice
, AsBoolSlice
#6011
Merged
dmathieu
merged 6 commits into
open-telemetry:main
from
boekkooi-impossiblecloud:boekkooi/improve-as-slice
Dec 3, 2024
Merged
Performance improvements for attribute value AsStringSlice
, AsFloat64Slice
, AsInt64Slice
, AsBoolSlice
#6011
dmathieu
merged 6 commits into
open-telemetry:main
from
boekkooi-impossiblecloud:boekkooi/improve-as-slice
Dec 3, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boekkooi-impossiblecloud
requested review from
MrAlias,
XSAM,
dashpole,
pellared and
dmathieu
as code owners
December 1, 2024 18:09
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6011 +/- ##
=======================================
- Coverage 82.1% 82.1% -0.1%
=======================================
Files 273 273
Lines 23652 23648 -4
=======================================
- Hits 19437 19433 -4
Misses 3870 3870
Partials 345 345 |
boekkooi-impossiblecloud
changed the title
improve as slice
Performance improvements for attribute value Dec 1, 2024
AsStringSlice
, AsFloat64Slice
, AsInt64Slice
, AsBoolSlice
boekkooi-impossiblecloud
force-pushed
the
boekkooi/improve-as-slice
branch
from
December 2, 2024 07:32
5208dd0
to
7d1f5a3
Compare
dmathieu
approved these changes
Dec 2, 2024
MrAlias
reviewed
Dec 2, 2024
MrAlias
approved these changes
Dec 2, 2024
Merged
MrAlias
added a commit
that referenced
this pull request
Dec 12, 2024
### Added - Add `Reset` method to `SpanRecorder` in `go.opentelemetry.io/otel/sdk/trace/tracetest`. (#5994) - Add `EnabledInstrument` interface in `go.opentelemetry.io/otel/sdk/metric/internal/x`. This is an experimental interface that is implemented by synchronous instruments provided by `go.opentelemetry.io/otel/sdk/metric`. Users can use it to avoid performing computationally expensive operations when recording measurements. It does not fall within the scope of the OpenTelemetry Go versioning and stability [policy](./VERSIONING.md) and it may be changed in backwards incompatible ways or removed in feature releases. (#6016) ### Changed - The default global API now supports full auto-instrumentation from the `go.opentelemetry.io/auto` package. See that package for more information. (#5920) - Propagate non-retryable error messages to client in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#5929) - Propagate non-retryable error messages to client in `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`. (#5929) - Propagate non-retryable error messages to client in `go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`. (#5929) - Performance improvements for attribute value `AsStringSlice`, `AsFloat64Slice`, `AsInt64Slice`, `AsBoolSlice`. (#6011) - Change `EnabledParameters` to have a `Severity` field instead of a getter and setter in `go.opentelemetry.io/otel/log`. (#6009) ### Fixed - Fix inconsistent request body closing in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#5954) - Fix inconsistent request body closing in `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`. (#5954) - Fix inconsistent request body closing in `go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`. (#5954) - Fix invalid exemplar keys in `go.opentelemetry.io/otel/exporters/prometheus`. (#5995) - Fix attribute value truncation in `go.opentelemetry.io/otel/sdk/trace`. (#5997) - Fix attribute value truncation in `go.opentelemetry.io/otel/sdk/log`. (#6032)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Good day,
This PR changes As[Bool|Int64|Float64|String]Slice to use a little less reflection.
The benchstat result of this is as follows.