-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[pkg/ottl] Add OTTL support for profiles #37574
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
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
7a05b41
Add OTTL support for profiles
rockdaboot 8e38cb0
Drop parseEnum()
rockdaboot f55b2e2
Experimental ottlprofile context marshaller
rockdaboot 0a7cd61
Merge remote-tracking branch 'upstream/main' into ottl-profile
rockdaboot d09fa0c
Update code
rockdaboot 4d8eb1b
More ottlprofile context marshaller
rockdaboot 5d4a271
Merge remote-tracking branch 'upstream/main' into ottl-profile
rockdaboot 9a1352a
Fix merge conflicts
rockdaboot 36807be
Add marshaller for ottlprofile TransformContext
rockdaboot 4681525
Merge remote-tracking branch 'upstream/main' into ottl-profile
rockdaboot c23ad4d
Update deps for sample.LinkIndex()
rockdaboot 52de3eb
Use hex.EncodeToString() for spanID, traceID, profileID
rockdaboot 731e407
Revert "Update deps for sample.LinkIndex()"
rockdaboot f3c93a9
Remove ProfileContextName
rockdaboot 3f5a883
Make logging / marshalling code internal
rockdaboot e26fc84
Merge remote-tracking branch 'upstream/main' into ottl-profile
rockdaboot 9eefcf9
Fix goporto
rockdaboot f573a2d
ctxutil.SchemaURLItem -> ctxcommon.SchemaURLItem
rockdaboot f3ce63e
Refactor the cache stuff
rockdaboot 6945b52
Merge branch 'main' into ottl-profile
rockdaboot eb452a7
Amend for new cache patterns
rockdaboot d653f9c
Merge branch 'main' into ottl-profile
rockdaboot 4109f16
Merge remote-tracking branch 'upstream/main' into ottl-profile
rockdaboot 4b5ddd6
Amend code after merging upstream
rockdaboot 293cf04
Add accessStringProfileID()
rockdaboot bb1082d
Fix README.md
rockdaboot b0ce131
Fix int32 -> int64
rockdaboot 931b735
Use time.Time instead of pcommon.Timestamp
rockdaboot 25b43b1
Rename attribut to attribute
rockdaboot 49a3a67
Uncomment link
rockdaboot 98c94b5
Merge remote-tracking branch 'upstream/main' into ottl-profile
rockdaboot 2a3be83
Add accessor for duration in unix nanos
rockdaboot 117098b
Use basic Go array types in accessors
rockdaboot 4721fd6
Use Go byte array for original_payload
rockdaboot 1c47588
Use []int64 instead of []int32 in accessors
rockdaboot 4954acc
Fix merge conflicts
rockdaboot 0c2e2c0
Add test for ParseProfileID()
rockdaboot d113c96
Use pprofile.AggregationTemporalityDelta in test
rockdaboot 478bfbc
Remove not yet implemented enums from README.md
rockdaboot b84ab88
Add TestProfile_MarshalLogObject() in internal/logprofiles
rockdaboot 34dfcbc
Remove ottlprofile/logging_test.go
rockdaboot 5409060
Add license header and appease linter
rockdaboot ba915e2
Add helpers AsIntegerRawSlice() and AsRawSlice()
rockdaboot 13da60f
Change Option to ottl.Option[TransformContext
rockdaboot 84c1de5
Merge remote-tracking branch 'upstream/main' into ottl-profile
rockdaboot 391b10f
Merge remote-tracking branch 'upstream/main' into ottl-profile
rockdaboot 53b3cf8
Use new slice functions
rockdaboot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: ottlprofile | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Add OTTL support for profiles. | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [36104] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: | ||
|
||
# If your change doesn't affect end users or the exported elements of any package, | ||
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. | ||
# Optional: The change log or logs in which this entry should be included. | ||
# e.g. '[user]' or '[user, api]' | ||
# Include 'user' if the change is relevant to end users. | ||
# Include 'api' if there is a change to a library API. | ||
# Default: '[user]' | ||
change_logs: [] |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package ctxprofile // import "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/internal/ctxprofile" | ||
import ( | ||
"go.opentelemetry.io/collector/pdata/pprofile" | ||
) | ||
|
||
const ( | ||
Name = "profile" | ||
DocRef = "https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl/contexts/ottlprofile" | ||
) | ||
|
||
type Context interface { | ||
GetProfile() pprofile.Profile | ||
} |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.