Skip to content

Commit 9f8e9c1

Browse files
Bump jetty-server.version from 12.0.18 to 12.0.19 (#1317)
Bumps `jetty-server.version` from 12.0.18 to 12.0.19. Updates `org.eclipse.jetty:jetty-server` from 12.0.18 to 12.0.19 Updates `org.eclipse.jetty.ee10:jetty-ee10-servlet` from 12.0.18 to 12.0.19 Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Gregor Zeitlinger <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger <[email protected]>
1 parent 6006e47 commit 9f8e9c1

File tree

3 files changed

+89
-6
lines changed

3 files changed

+89
-6
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"status": "success",
3+
"data": {
4+
"resultType": "vector",
5+
"result": [
6+
{
7+
"metric": {
8+
"__name__": "target_info",
9+
"container_id": "0282187277c5f259f3405455bd5094a936642415a02bd8dbbdb41a73987d8db7",
10+
"host_arch": "amd64",
11+
"host_name": "0282187277c5",
12+
"instance": "6b3318d9-2b87-498b-a1a3-bbfaecc96374",
13+
"job": "rolldice",
14+
"os_description": "Linux 6.8.0-57-generic",
15+
"os_type": "linux",
16+
"process_command_args": "[\"/opt/java/openjdk/bin/java\",\"-jar\",\"./app.jar\"]",
17+
"process_executable_path": "/opt/java/openjdk/bin/java",
18+
"process_pid": "1",
19+
"process_runtime_description": "Eclipse Adoptium OpenJDK 64-Bit Server VM 21.0.6+7-LTS",
20+
"process_runtime_name": "OpenJDK Runtime Environment",
21+
"process_runtime_version": "21.0.6+7-LTS",
22+
"service_instance_id": "6b3318d9-2b87-498b-a1a3-bbfaecc96374",
23+
"service_name": "rolldice",
24+
"telemetry_distro_name": "opentelemetry-java-instrumentation",
25+
"telemetry_distro_version": "2.8.0",
26+
"telemetry_sdk_language": "java",
27+
"telemetry_sdk_name": "opentelemetry",
28+
"telemetry_sdk_version": "1.42.1"
29+
},
30+
"value": [
31+
1743776399.291,
32+
"1"
33+
]
34+
},
35+
{
36+
"metric": {
37+
"__name__": "target_info",
38+
"http_scheme": "http",
39+
"instance": "e6ff9e41-acdb-4c47-88b5-8112c831f5b5",
40+
"job": "otelcol-contrib",
41+
"net_host_port": "8888",
42+
"server_port": "8888",
43+
"service_instance_id": "e6ff9e41-acdb-4c47-88b5-8112c831f5b5",
44+
"service_name": "otelcol-contrib",
45+
"service_version": "0.122.1",
46+
"url_scheme": "http"
47+
},
48+
"value": [
49+
1743776399.291,
50+
"1"
51+
]
52+
},
53+
{
54+
"metric": {
55+
"__name__": "target_info",
56+
"container_id": "0282187277c5f259f3405455bd5094a936642415a02bd8dbbdb41a73987d8db7",
57+
"host_arch": "amd64",
58+
"host_name": "0282187277c5",
59+
"instance": "6b3318d9-2b87-498b-a1a3-bbfaecc96374",
60+
"job": "rolldice",
61+
"os_description": "Linux 6.8.0-57-generic",
62+
"os_type": "linux",
63+
"process_command_line": "/opt/java/openjdk/bin/java -javaagent:/usr/src/app/opentelemetry-javaagent.jar -jar ./app.jar",
64+
"process_executable_path": "/opt/java/openjdk/bin/java",
65+
"process_pid": "1",
66+
"process_runtime_description": "Eclipse Adoptium OpenJDK 64-Bit Server VM 21.0.6+7-LTS",
67+
"process_runtime_name": "OpenJDK Runtime Environment",
68+
"process_runtime_version": "21.0.6+7-LTS",
69+
"service_instance_id": "6b3318d9-2b87-498b-a1a3-bbfaecc96374",
70+
"service_name": "rolldice",
71+
"telemetry_sdk_language": "java",
72+
"telemetry_sdk_name": "opentelemetry",
73+
"telemetry_sdk_version": "1.48.0"
74+
},
75+
"value": [
76+
1743776399.291,
77+
"1"
78+
]
79+
}
80+
]
81+
}
82+
}

examples/example-exporter-opentelemetry/oats-tests/agent/service-instance-id-check.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
import urllib.parse
88
import json
99

10-
url = ' http://localhost:9090/api/v1/label/instance/values'
10+
url = ' http://localhost:9090/api/v1/query?query=target_info'
1111
res = json.loads(urlopen(url).read().decode('utf-8'))
1212

13-
values = list(res['data'])
14-
print(values)
13+
# uncomment the following line to use the local file instead of the url - for debugging
14+
# with open('example_target_info.json') as f:
15+
# res = json.load(f)
1516

16-
if "localhost:8888" in values:
17-
values.remove("localhost:8888")
17+
values = list({r['metric']['instance'] for r in res['data']['result'] if not r['metric']['service_name'] == 'otelcol-contrib'})
18+
print(values)
1819

1920
# both the agent and the exporter should report the same instance id
2021
assert len(values) == 1

integration-tests/it-exporter/it-exporter-servlet-jetty-sample/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Jetty Sample for the Exporter Integration Test
1616
</description>
1717
<properties>
18-
<jetty-server.version>12.0.18</jetty-server.version>
18+
<jetty-server.version>12.0.19</jetty-server.version>
1919
<java.version>17</java.version>
2020
</properties>
2121

0 commit comments

Comments
 (0)