Skip to content

Commit

Permalink
Bump nodejs from v2.11.0 to v2.12.0 in helm-charts/splunk-otel-collec…
Browse files Browse the repository at this point in the history
…tor/values.yaml (#1434)

* Update nodejs instrumentation version

* fix tests

---------

Co-authored-by: jvoravong <[email protected]>
Co-authored-by: Antoine Toulme <[email protected]>
  • Loading branch information
3 people committed Sep 17, 2024
1 parent 13281f4 commit 7739170
Show file tree
Hide file tree
Showing 5 changed files with 270 additions and 23 deletions.
12 changes: 12 additions & 0 deletions .chloggen/update-nodejs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 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. agent, clusterReceiver, gateway, operator, chart, other)
component: operator
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Bump nodejs to v2.12.0 in helm-charts/splunk-otel-collector/values.yaml
# One or more tracking issues related to the change
issues: [1434]
# (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:
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ spec:
- name: OTEL_RESOURCE_ATTRIBUTES
value: splunk.zc.method=autoinstrumentation-apache-httpd:1.0.4
nodejs:
image: ghcr.io/signalfx/splunk-otel-js/splunk-otel-js:v2.11.0
image: ghcr.io/signalfx/splunk-otel-js/splunk-otel-js:v2.12.0
env:
- name: OTEL_RESOURCE_ATTRIBUTES
value: splunk.zc.method=splunk-otel-js:v2.11.0
value: splunk.zc.method=splunk-otel-js:v2.12.0
python:
image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-python:0.44b0
env:
Expand Down
8 changes: 4 additions & 4 deletions functional_tests/functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1134,17 +1134,17 @@ func testAgentMetrics(t *testing.T) {
pmetrictest.IgnoreMetricAttributeValue("container.id", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("k8s.daemonset.uid", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("k8s.deployment.uid", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("k8s.pod.uid", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("k8s.pod.name", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("k8s.pod.uid"),
pmetrictest.IgnoreMetricAttributeValue("k8s.pod.name"),
pmetrictest.IgnoreMetricAttributeValue("k8s.replicaset.uid", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("k8s.replicaset.name", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("k8s.namespace.uid", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("container.image.name", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("container.image.tag", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("k8s.node.uid", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("net.host.name", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("service.instance.id", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("service_instance_id", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("service.instance.id"),
pmetrictest.IgnoreMetricAttributeValue("service_instance_id"),
pmetrictest.IgnoreMetricAttributeValue("service_version", metricNames...),
pmetrictest.IgnoreMetricAttributeValue("receiver", metricNames...),
pmetrictest.IgnoreMetricValues(metricNames...),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ resourceSpans:
stringValue: opentelemetry
- key: telemetry.sdk.version
value:
stringValue: 1.18.1
stringValue: 1.26.0
- key: splunk.distro.version
value:
stringValue: latest
stringValue: 2.12.0
- key: splunk.zc.method
value:
stringValue: splunk-otel-js:latest
stringValue: splunk-otel-js:v2.12.0
- key: k8s.container.name
value:
stringValue: nodejs-test
Expand All @@ -33,10 +33,10 @@ resourceSpans:
stringValue: kind-control-plane
- key: k8s.pod.name
value:
stringValue: nodejs-test-d454cf769-rq7fs
stringValue: nodejs-test-56b74df9ff-dvls2
- key: k8s.replicaset.name
value:
stringValue: nodejs-test-d454cf769
stringValue: nodejs-test-56b74df9ff
- key: service.version
value:
stringValue: latest
Expand All @@ -51,28 +51,46 @@ resourceSpans:
stringValue: linux
- key: os.version
value:
stringValue: 6.5.11-linuxkit
stringValue: 6.10.0-linuxkit
- key: process.pid
value:
intValue: "10"
- key: process.executable.name
value:
stringValue: node
- key: process.executable.path
value:
stringValue: /usr/local/bin/node
- key: process.command_args
value:
arrayValue:
values:
- stringValue: /usr/local/bin/node
- stringValue: /index.js
- key: process.runtime.version
value:
stringValue: 16.20.2
- key: process.runtime.name
value:
stringValue: nodejs
- key: k8s.pod.ip
- key: process.runtime.description
value:
stringValue: 10.244.0.21
- key: k8s.pod.uid
stringValue: Node.js
- key: process.command
value:
stringValue: /index.js
- key: process.owner
value:
stringValue: 37458d11-a530-4752-9d26-db60433b2744
stringValue: root
- key: k8s.pod.ip
value:
stringValue: 10.244.0.118
- key: k8s.pod.labels.app
value:
stringValue: nodejs-test
- key: k8s.pod.uid
value:
stringValue: 5e30d862-b449-41ad-963d-a10b6414336d
- key: container.image.name
value:
stringValue: quay.io/splunko11ytest/nodejs_test
Expand All @@ -81,7 +99,7 @@ resourceSpans:
stringValue: latest
- key: container.id
value:
stringValue: dc62b8db1df2de43524c114c6b7e1f091b01e4b5079e964772bba0d5be37e415
stringValue: 35dc5a29a73d04f4231e9f5768e61478fdb9dfd0b6f6f8876ce3beaf06bf1e8d
- key: k8s.cluster.name
value:
stringValue: dev-operator
Expand All @@ -101,7 +119,6 @@ resourceSpans:
scopeSpans:
- scope:
name: '@opentelemetry/instrumentation-http'
version: 0.48.0
spans:
- attributes:
- key: http.url
Expand All @@ -124,7 +141,223 @@ resourceSpans:
stringValue: /
- key: http.user_agent
value:
stringValue: '*'
stringValue: curl/8.4.0
- key: http.flavor
value:
stringValue: "1.1"
- key: net.transport
value:
stringValue: ip_tcp
- key: net.host.ip
value:
stringValue: 127.0.0.1
- key: net.host.port
value:
intValue: "3000"
- key: net.peer.ip
value:
stringValue: 127.0.0.1
- key: net.peer.port
value:
intValue: "43006"
- key: http.status_code
value:
intValue: "200"
- key: http.status_text
value:
stringValue: OK
endTimeUnixNano: "1726502403845388875"
kind: 2
name: GET
parentSpanId: ""
spanId: 52062154b9ec5290
startTimeUnixNano: "1726502403845000000"
status: {}
traceId: 7e5bef2baa2346db56e6a30517c71dd6
- attributes:
- key: http.url
value:
stringValue: http://localhost:3000/
- key: http.host
value:
stringValue: localhost:3000
- key: net.host.name
value:
stringValue: localhost
- key: http.method
value:
stringValue: GET
- key: http.scheme
value:
stringValue: http
- key: http.target
value:
stringValue: /
- key: http.user_agent
value:
stringValue: curl/8.4.0
- key: http.flavor
value:
stringValue: "1.1"
- key: net.transport
value:
stringValue: ip_tcp
- key: net.host.ip
value:
stringValue: 127.0.0.1
- key: net.host.port
value:
intValue: "3000"
- key: net.peer.ip
value:
stringValue: 127.0.0.1
- key: net.peer.port
value:
intValue: "43014"
- key: http.status_code
value:
intValue: "200"
- key: http.status_text
value:
stringValue: OK
endTimeUnixNano: "1726502404852339167"
kind: 2
name: GET
parentSpanId: ""
spanId: 31da8ae156184ae0
startTimeUnixNano: "1726502404852000000"
status: {}
traceId: aa565d9b13731fde2e28512e6623b6b6
- attributes:
- key: http.url
value:
stringValue: http://localhost:3000/
- key: http.host
value:
stringValue: localhost:3000
- key: net.host.name
value:
stringValue: localhost
- key: http.method
value:
stringValue: GET
- key: http.scheme
value:
stringValue: http
- key: http.target
value:
stringValue: /
- key: http.user_agent
value:
stringValue: curl/8.4.0
- key: http.flavor
value:
stringValue: "1.1"
- key: net.transport
value:
stringValue: ip_tcp
- key: net.host.ip
value:
stringValue: 127.0.0.1
- key: net.host.port
value:
intValue: "3000"
- key: net.peer.ip
value:
stringValue: 127.0.0.1
- key: net.peer.port
value:
intValue: "43018"
- key: http.status_code
value:
intValue: "200"
- key: http.status_text
value:
stringValue: OK
endTimeUnixNano: "1726502405859321125"
kind: 2
name: GET
parentSpanId: ""
spanId: ffbefd6fc04ecab3
startTimeUnixNano: "1726502405859000000"
status: {}
traceId: bfb8870087b0d9f03659681cbc30801b
- attributes:
- key: http.url
value:
stringValue: http://localhost:3000/
- key: http.host
value:
stringValue: localhost:3000
- key: net.host.name
value:
stringValue: localhost
- key: http.method
value:
stringValue: GET
- key: http.scheme
value:
stringValue: http
- key: http.target
value:
stringValue: /
- key: http.user_agent
value:
stringValue: curl/8.4.0
- key: http.flavor
value:
stringValue: "1.1"
- key: net.transport
value:
stringValue: ip_tcp
- key: net.host.ip
value:
stringValue: 127.0.0.1
- key: net.host.port
value:
intValue: "3000"
- key: net.peer.ip
value:
stringValue: 127.0.0.1
- key: net.peer.port
value:
intValue: "43024"
- key: http.status_code
value:
intValue: "200"
- key: http.status_text
value:
stringValue: OK
endTimeUnixNano: "1726502406863394916"
kind: 2
name: GET
parentSpanId: ""
spanId: 7f34b9ea0aa0e993
startTimeUnixNano: "1726502406863000000"
status: {}
traceId: 1d3abed17ff80cd0e8ca9914dd545e94
- attributes:
- key: http.url
value:
stringValue: http://localhost:3000/
- key: http.host
value:
stringValue: localhost:3000
- key: net.host.name
value:
stringValue: localhost
- key: http.method
value:
stringValue: GET
- key: http.scheme
value:
stringValue: http
- key: http.target
value:
stringValue: /
- key: http.user_agent
value:
stringValue: curl/8.4.0
- key: http.flavor
value:
stringValue: "1.1"
Expand All @@ -142,16 +375,18 @@ resourceSpans:
stringValue: 127.0.0.1
- key: net.peer.port
value:
stringValue: '*'
intValue: "43036"
- key: http.status_code
value:
intValue: "200"
- key: http.status_text
value:
stringValue: OK
endTimeUnixNano: "1726502407872361666"
kind: 2
name: GET
parentSpanId: ""
spanId: ""
spanId: 304bd20b92f9c8ff
startTimeUnixNano: "1726502407872000000"
status: {}
traceId: ""
traceId: 1e0ded79cf35b487d2f02207cfe58da4
Loading

0 comments on commit 7739170

Please sign in to comment.