-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[storage] Add OTLP Scope metadata validation test (part of #7050) #7632
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
Open
SoumyaRaikwar
wants to merge
15
commits into
jaegertracing:main
Choose a base branch
from
SoumyaRaikwar:feature/upgrade-integration-tests-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+245
−8
Open
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f9cb3a5
[storage] Upgrade e2e storage tests to use v2 Storage API and OTLP
SoumyaRaikwar 1f5fabe
Merge branch 'main' into feature/upgrade-integration-tests-v2
SoumyaRaikwar aa25cf0
Change loadParseAndWriteExampleTrace() to NOT use new OTLP functions
SoumyaRaikwar 13dc0db
fixed formatting and testing coverage
SoumyaRaikwar 908ffb2
Merge branch 'main' into feature/upgrade-integration-tests-v2
SoumyaRaikwar d68c32f
test(integration): remove unused V1TraceFromOtelTrace function
SoumyaRaikwar 2f11e32
Merge branch 'main' into feature/upgrade-integration-tests-v2
SoumyaRaikwar 33554b9
test: add OTLP Scope preservation test
SoumyaRaikwar 6baab68
Merge branch 'main' into feature/upgrade-integration-tests-v2
SoumyaRaikwar d295d97
fix: resolve lint errors - remove unused receiver; use require.Positive
SoumyaRaikwar c81068e
Update internal/storage/integration/fixtures/traces/otlp_scope_attrib…
SoumyaRaikwar 5035896
fix: normalize OTLP fixture timestamps
SoumyaRaikwar 8e188b1
Update internal/storage/integration/fixtures/traces/otlp_scope_attrib…
SoumyaRaikwar 59d3253
Clean up comments in normalizeOTLPTimestamps function
SoumyaRaikwar 77165e9
Clean up integration.go by removing empty lines
SoumyaRaikwar 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
44 changes: 44 additions & 0 deletions
44
internal/storage/integration/fixtures/traces/otlp_resource_attributes.json
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,44 @@ | ||
| { | ||
| "resourceSpans": [ | ||
| { | ||
| "resource": { | ||
| "attributes": [ | ||
| { | ||
| "key": "service.name", | ||
| "value": {"stringValue": "resource-test-service"} | ||
| }, | ||
| { | ||
| "key": "host.name", | ||
| "value": {"stringValue": "test-host-01"} | ||
| }, | ||
| { | ||
| "key": "k8s.pod.name", | ||
| "value": {"stringValue": "test-pod-123"} | ||
| }, | ||
| { | ||
| "key": "k8s.namespace.name", | ||
| "value": {"stringValue": "production"} | ||
| } | ||
| ] | ||
| }, | ||
| "scopeSpans": [ | ||
| { | ||
| "scope": { | ||
| "name": "resource-test", | ||
| "version": "1.0.0" | ||
| }, | ||
| "spans": [ | ||
| { | ||
| "traceId": "00000000000000000000000000000030", | ||
| "spanId": "0000000000000020", | ||
| "name": "resource-attributes-operation", | ||
| "startTimeUnixNano": "1485445591639875000", | ||
| "endTimeUnixNano": "1485445591739875000", | ||
| "attributes": [] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
63 changes: 63 additions & 0 deletions
63
internal/storage/integration/fixtures/traces/otlp_scope_attributes.json
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,63 @@ | ||
| { | ||
| "resourceSpans": [ | ||
| { | ||
| "resource": { | ||
| "attributes": [ | ||
| { | ||
| "key": "service.name", | ||
| "value": {"stringValue": "otlp-test-service"} | ||
| }, | ||
| { | ||
| "key": "service.version", | ||
| "value": {"stringValue": "1.0.0"} | ||
| }, | ||
| { | ||
| "key": "deployment.environment", | ||
| "value": {"stringValue": "test"} | ||
| } | ||
| ] | ||
| }, | ||
| "scopeSpans": [ | ||
| { | ||
| "scope": { | ||
| "name": "test-instrumentation-library", | ||
| "version": "2.1.0", | ||
| "attributes": [ | ||
| { | ||
| "key": "otel.scope.name", | ||
| "value": {"stringValue": "custom-tracer"} | ||
| }, | ||
| { | ||
| "key": "instrumentation.provider", | ||
| "value": {"stringValue": "opentelemetry"} | ||
| } | ||
| ] | ||
SoumyaRaikwar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "spans": [ | ||
| { | ||
| "traceId": "00000000000000000000000000000020", | ||
| "spanId": "0000000000000010", | ||
| "name": "otlp-scope-test-operation", | ||
| "kind": 2, | ||
| "startTimeUnixNano": "1485445591639875000", | ||
| "endTimeUnixNano": "1485445591739875000", | ||
| "attributes": [ | ||
| { | ||
| "key": "http.method", | ||
| "value": {"stringValue": "GET"} | ||
| }, | ||
| { | ||
| "key": "http.status_code", | ||
| "value": {"intValue": "200"} | ||
SoumyaRaikwar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| ], | ||
| "status": { | ||
| "code": 0 | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
64 changes: 64 additions & 0 deletions
64
internal/storage/integration/fixtures/traces/otlp_span_links.json
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,64 @@ | ||
| { | ||
| "resourceSpans": [ | ||
| { | ||
| "resource": { | ||
| "attributes": [ | ||
| { | ||
| "key": "service.name", | ||
| "value": {"stringValue": "span-links-service"} | ||
| } | ||
| ] | ||
| }, | ||
| "scopeSpans": [ | ||
| { | ||
| "scope": { | ||
| "name": "span-links-test", | ||
| "version": "1.0.0", | ||
| "attributes": [ | ||
| { | ||
| "key": "otel.scope.test", | ||
| "value": {"stringValue": "true"} | ||
| } | ||
| ] | ||
| }, | ||
| "spans": [ | ||
| { | ||
| "traceId": "00000000000000000000000000000040", | ||
| "spanId": "0000000000000030", | ||
| "name": "parent-span-with-links", | ||
| "kind": 1, | ||
| "startTimeUnixNano": "1485445591639875000", | ||
| "endTimeUnixNano": "1485445591939875000", | ||
| "attributes": [], | ||
| "links": [ | ||
| { | ||
| "traceId": "00000000000000000000000000000050", | ||
| "spanId": "0000000000000040", | ||
| "attributes": [ | ||
| { | ||
| "key": "link.type", | ||
| "value": {"stringValue": "parent_link"} | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "traceId": "00000000000000000000000000000060", | ||
| "spanId": "0000000000000050", | ||
| "attributes": [ | ||
| { | ||
| "key": "link.type", | ||
| "value": {"stringValue": "sibling_link"} | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "status": { | ||
| "code": 0 | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
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
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.