Skip to content

Commit

Permalink
chore: Upgrade the java-autoinstrumentation library to 2.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rnishtala-sumo committed Jan 31, 2025
1 parent a2e6538 commit 7c677f1
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions .changelog/3882.changed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chore: Upgrade the java-autoinstrumentation library to 2.10.0
2 changes: 1 addition & 1 deletion deploy/helm/sumologic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ The following table lists the configurable parameters of the Sumo Logic chart an
| `instrumentation.dotnet.traces.enabled` | Flag to control traces export from DotNet instrumentation in `Instrumentation` resource. | `true` |
| `instrumentation.java.extraEnvVars` | Additional environment variables for OpenTelemetry Operator Instrumentation Resource. | `{}` |
| `opentelemetry-operator.manager.autoInstrumentationImage.java.repository` | OpenTelemetry Operator Java Instrumentation image repository. | `public.ecr.aws/sumologic/autoinstrumentation-java` |
| `opentelemetry-operator.manager.autoInstrumentationImage.java.tag` | OpenTelemetry Operator Java Instrumentation image tag. | `1.26.0` |
| `opentelemetry-operator.manager.autoInstrumentationImage.java.tag` | OpenTelemetry Operator Java Instrumentation image tag. | `2.10.0` |
| `instrumentation.java.metrics.enabled` | Flag to control metrics export from Java instrumentation in `Instrumentation` resource. | `true` |
| `instrumentation.java.traces.enabled` | Flag to control traces export from Java instrumentation in `Instrumentation` resource. | `true` |
| `instrumentation.python.extraEnvVars` | Additional environment variables for OpenTelemetry Operator Instrumentation Resource. | `{}` |
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@ opentelemetry-operator:
autoInstrumentationImage:
java:
repository: public.ecr.aws/sumologic/autoinstrumentation-java
tag: 1.26.0
tag: 2.10.0
dotnet:
repository: public.ecr.aws/sumologic/autoinstrumentation-dotnet
tag: 0.7.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ data:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://RELEASE-NAME-sumologic-otelagent.sumologic:4317
java:
image: public.ecr.aws/sumologic/autoinstrumentation-java:1.26.0
image: public.ecr.aws/sumologic/autoinstrumentation-java:2.10.0
env:
- name: OTEL_METRICS_EXPORTER
value: otlp
Expand Down Expand Up @@ -130,7 +130,7 @@ data:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://RELEASE-NAME-sumologic-otelagent.sumologic:4317
java:
image: public.ecr.aws/sumologic/autoinstrumentation-java:1.26.0
image: public.ecr.aws/sumologic/autoinstrumentation-java:2.10.0
env:
- name: OTEL_METRICS_EXPORTER
value: otlp
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -812,10 +812,10 @@ func GetCurlAppFeature() features.Feature {
"net.protocol.version": "1.1",
"_sourceCategory": "kubernetes/test/apps/java/app",
"_sourceName": fmt.Sprintf("%s.java-app.javaapp", internal.InstrumentationAppsNamespace),
"telemetry.auto.version": "1.26.0",
"telemetry.auto.version": "2.10.0",
"telemetry.sdk.language": "java",
"telemetry.sdk.name": "opentelemetry",
"telemetry.sdk.version": "1.26.0",
"telemetry.sdk.version": "2.10.0",
},
waitDuration,
tickDuration,
Expand Down
1 change: 0 additions & 1 deletion tests/integration/internal/stepfuncs/assess_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ func WaitUntilExpectedTracesPresent(
log.InfoS(
"received enough traces, but less spans than expected",
"received numbers of spans in traces", tracesLengths,
"expected", expectedSpansPerTraceCount,
)
return false
}
Expand Down
9 changes: 8 additions & 1 deletion tests/integration/internal/sumologicmock/receiver_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,16 @@ func (client *SumologicMockClient) GetTracesCounts(t *testing.T, metadataFilters
}

url := client.baseUrl.ResolveReference(path)
fmt.Println("================Fetching traces================")
fmt.Println(url.String())
resp, err := http.Get(url.String())
if err != nil {
return []uint{}, fmt.Errorf("failed fetching %s, err: %w", url, err)
}
fmt.Println(resp.Body)
url.RawQuery = queryParams.Encode()

resp, err := http.Get(url.String())
resp, err = http.Get(url.String())
if err != nil {
return []uint{}, fmt.Errorf("failed fetching %s, err: %w", url, err)
}
Expand Down

0 comments on commit 7c677f1

Please sign in to comment.