Skip to content

Commit 91c682b

Browse files
committed
Merge branch 'main' of github.com:open-telemetry/opentelemetry-java-instrumentation into semconv-stable-code
2 parents 3be4b7a + a7d77a8 commit 91c682b

File tree

93 files changed

+1953
-476
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1953
-476
lines changed

.github/repository-settings.md

Lines changed: 2 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,8 @@
11
# Repository settings
22

33
This document describes any changes that have been made to the
4-
settings for this repository beyond the [OpenTelemetry default repository
5-
settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-configure-new-repository.md#repository-settings).
6-
7-
## General > Pull Requests
8-
9-
- Allow squash merging > Default to pull request title
10-
11-
- Allow auto-merge
12-
13-
## Actions > General
14-
15-
- Fork pull request workflows from outside collaborators:
16-
"Require approval for first-time contributors who are new to GitHub"
17-
18-
(To reduce friction for new contributors,
19-
as the default is "Require approval for first-time contributors")
20-
21-
- Workflow permissions
22-
- Default permissions granted to the `GITHUB_TOKEN` when running workflows in this repository:
23-
Read repository contents and packages permissions
24-
- Allow GitHub Actions to create and approve pull requests: UNCHECKED
25-
26-
## Rules > Rulesets
27-
28-
### `main` and release branches
29-
30-
- Targeted branches:
31-
- `main`
32-
- `release/*`
33-
- Branch rules
34-
- Restrict deletions: CHECKED
35-
- Require a pull request before merging: CHECKED
36-
- Required approvals: 1
37-
- Require review from Code Owners: CHECKED
38-
- Allowed merge methods: Squash
39-
- Require status checks to pass
40-
- Do not require status checks on creation: CHECKED
41-
- Status checks that are required
42-
- EasyCLA
43-
- `required-status-check`
44-
- `gradle-wrapper-validation`
45-
- Block force pushes: CHECKED
46-
- Require code scanning results: CHECKED
47-
- CodeQL
48-
- Security alerts: High or higher
49-
- Alerts: Errors
50-
51-
> [!NOTE]
52-
> This repository can't "require linear history" because there is an old merge commit on `main`
53-
> (and so also on the release branches).
54-
55-
### `cloudfoundry` branch
56-
57-
- Targeted branches:
58-
- `cloudfoundry`
59-
- Branch rules
60-
- Restrict deletions: CHECKED
61-
- Require linear history: CHECKED
62-
- Require a pull request before merging: CHECKED
63-
- Required approvals: 1
64-
- Require review from Code Owners: CHECKED
65-
- Allowed merge methods: Squash
66-
- Require status checks to pass
67-
- EasyCLA
68-
- Block force pushes: CHECKED
69-
70-
### `gh-pages` branch
71-
72-
- Targeted branches:
73-
- `gh-pages`
74-
- Branch rules
75-
- Restrict deletions: CHECKED
76-
- Require linear history: CHECKED
77-
- Block force pushes: CHECKED
78-
79-
### Old-style release branches
80-
81-
- Targeted branches:
82-
- `v0.*`
83-
- `v1.*`
84-
- Branch rules
85-
- Restrict creations: CHECKED
86-
- Restrict updates: CHECKED
87-
- Restrict deletions: CHECKED
88-
89-
### Restrict branch creation
90-
91-
- Targeted branches
92-
- Exclude:
93-
- `release/*`
94-
- `renovate/**/*`
95-
- `otelbot/**/*`
96-
- `revert-*/**/*` (these are created when using the GitHub UI to revert a PR)
97-
- Restrict creations: CHECKED
98-
99-
### Restrict updating tags
100-
101-
- Targeted tags
102-
- All tags
103-
- Restrict updates: CHECKED
104-
- Restrict deletions: CHECKED
105-
106-
## Branch protections
107-
108-
### `main`, `release/*`, `cloudfoundry`
109-
110-
- Restrict who can push to matching branches: CHECKED
111-
112-
## Code security and analysis
113-
114-
- Secret scanning: Enabled
4+
settings in this repository outside the settings tracked in the
5+
private admin repo.
1156

1167
## Secrets and variables > Actions
1178

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
cache-read-only: ${{ github.event_name == 'pull_request' }}
5151

5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
53+
uses: github/codeql-action/init@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
5454
with:
5555
languages: java, actions
5656
# using "latest" helps to keep up with the latest Kotlin support
@@ -65,4 +65,4 @@ jobs:
6565
run: ./gradlew assemble -x javadoc -x :instrumentation:quarkus-resteasy-reactive:quarkus3-testing:quarkusGenerateCodeDev -x :instrumentation:quarkus-resteasy-reactive:quarkus2-testing:quarkusGenerateCodeDev --no-build-cache --no-daemon
6666

6767
- name: Perform CodeQL analysis
68-
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
68+
uses: github/codeql-action/analyze@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19

.github/workflows/issue-management-feedback-label.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
permissions:
1313
contents: read
1414
issues: write
15+
pull-requests: write
1516
if: >
1617
contains(github.event.issue.labels.*.name, 'needs author feedback') &&
1718
github.event.comment.user.login == github.event.issue.user.login

.github/workflows/ossf-scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
persist-credentials: false
2525

26-
- uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
26+
- uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
2727
with:
2828
results_file: results.sarif
2929
results_format: sarif
@@ -42,6 +42,6 @@ jobs:
4242
# Upload the results to GitHub's code scanning dashboard (optional).
4343
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
45+
uses: github/codeql-action/upload-sarif@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
4646
with:
4747
sarif_file: results.sarif

.github/workflows/publish-petclinic-benchmark-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: echo "TS=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
3333

3434
- name: Push to GitHub packages
35-
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
35+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
3636
with:
3737
push: true
3838
file: benchmark-overhead/Dockerfile.petclinic

CHANGELOG.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22

33
## Unreleased
44

5+
### Migration notes
6+
- Tomcat metrics definitions provided by JMX Metric Insight subsystem
7+
- metric `http.server.tomcat.errorCount` --> `tomcat.error.count`
8+
- attribute: `name` --> `tomcat.request.processor.name`
9+
- type: Gauge --> Counter
10+
- metric `http.server.tomcat.requestCount` --> `tomcat.request.count`
11+
- attribute: `name` --> `tomcat.request.processor.name`
12+
- type: Gauge --> Counter
13+
- metric `http.server.tomcat.maxTime` --> `tomcat.request.duration.max`
14+
- attribute: `name` --> `tomcat.request.processor.name`
15+
- unit: `ms` --> `s`
16+
- metric `http.server.tomcat.processingTime` --> `tomcat.request.duration.sum`
17+
- attribute: `name` --> `tomcat.request.processor.name`
18+
- unit: `ms` --> `s`
19+
- metric `http.server.tomcat.traffic` --> `tomcat.network.io`
20+
- attribute: `name` --> `tomcat.request.processor.name`, `direction` --> `network.io.direction`
21+
- metric `http.server.tomcat.sessions.activeSessions` --> `tomcat.session.active.count`
22+
- attribute: `context` --> `tomcat.context`
23+
- metric `http.server.tomcat.threads` split into two metrics: `tomcat.thread.count` and `tomcat.thread.busy.count`
24+
- attribute: `name` --> `tomcat.thread.pool.name`, `state` removed
25+
26+
### 📈 Enhancements
27+
28+
- **JMX Metric Insight**: improved Tomcat metrics alignment to semconv (see Migration notes above for details) and added new Tomcat metrics: `tomcat.session.active.limit`, `tomcat.thread.limit`
29+
([#13650](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13650))
30+
31+
532
## Version 2.16.0 (2025-05-15)
633

734
### ⚠️⚠️ Breaking changes ⚠️⚠️
@@ -11,7 +38,6 @@
1138
- Remove deprecated property for disabling kafka metrics
1239
([#13803](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13803))
1340

14-
1541
### 🌟 New javaagent instrumentation
1642

1743
- Add Avaje Jex Instrumentation

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ See [Running the tests](./docs/contributing/running-tests.md) for more details.
1717

1818
For developers testing code changes before a release is complete, there are
1919
snapshot builds of the `main` branch. They are available from
20-
the Sonatype OSS snapshots repository at `https://oss.sonatype.org/content/repositories/snapshots/`
21-
([browse](https://oss.sonatype.org/content/repositories/snapshots/io/opentelemetry/))
20+
the Sonatype snapshot repository at `https://central.sonatype.com/repository/maven-snapshots/`
21+
([browse](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/io/opentelemetry/)).
2222

2323
### Building from source
2424

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The version is specified in [version.gradle.kts](version.gradle.kts).
88

99
Every successful CI build of the main branch automatically executes `./gradlew publishToSonatype`
1010
as the last step, which publishes a snapshot build to
11-
[Sonatype OSS snapshots repository](https://oss.sonatype.org/content/repositories/snapshots/io/opentelemetry/).
11+
[Sonatype snapshot repository](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/io/opentelemetry/).
1212

1313
## Release cadence
1414

benchmark-overhead/Dockerfile.petclinic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:11.0.27_6-jdk@sha256:2efe33b5bd32f948e827c66761f0190150103ba3316395703a6e14322b0f4b87 as app-build
1+
FROM eclipse-temurin:11.0.27_6-jdk@sha256:2ecaad32bb7a709078bac5a56669c292cfb1bb2cbabcdbe8340e9367bbf7e5d4 as app-build
22

33
# This is the base image that will contain a built version of the spring-petclinic-rest
44
# application. Installing the dependencies and maven compiling the application is time

benchmark-overhead/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repositories {
1616
}
1717

1818
dependencies {
19-
implementation(enforcedPlatform("org.junit:junit-bom:5.12.2"))
19+
implementation(enforcedPlatform("org.junit:junit-bom:5.13.1"))
2020

2121
testImplementation("org.testcontainers:testcontainers:1.21.1")
2222
testImplementation("org.testcontainers:postgresql:1.21.1")

0 commit comments

Comments
 (0)