Skip to content

Commit 9b0d45f

Browse files
committed
Merge branch 'main' into nats-instrumentation
2 parents a2d15b4 + 68fdead commit 9b0d45f

File tree

261 files changed

+3352
-3074
lines changed

Some content is hidden

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

261 files changed

+3352
-3074
lines changed

.fossa.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ targets:
44
only:
55
# only scanning the modules which are published
66
# (as opposed to internal testing modules
7+
- type: gradle
8+
path: ./
9+
target: ':declarative-config-bridge'
710
- type: gradle
811
path: ./
912
target: ':instrumentation-annotations'
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Survey on Merged PR by Non-Member
2+
3+
on:
4+
pull_request_target:
5+
types: [closed]
6+
7+
permissions:
8+
contents: read
9+
10+
env:
11+
PR_NUM: ${{ github.event.pull_request.number }}
12+
SURVEY_URL: https://docs.google.com/forms/d/e/1FAIpQLSf2FfCsW-DimeWzdQgfl0KDzT2UEAqu69_f7F2BVPSxVae1cQ/viewform?entry.1540511742=open-telemetry/opentelemetry-java-instrumentation
13+
14+
jobs:
15+
comment-on-pr:
16+
name: Add survey to PR if author is not a member
17+
runs-on: ubuntu-latest
18+
if: github.event.pull_request.merged == true
19+
steps:
20+
- uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
21+
id: otelbot-token
22+
with:
23+
app-id: ${{ vars.OTELBOT_APP_ID }}
24+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
25+
26+
- name: Add survey comment if author is not a member or bot
27+
run: |
28+
USERNAME="${{ github.event.pull_request.user.login }}"
29+
USER_TYPE="${{ github.event.pull_request.user.type }}"
30+
ORG="${{ github.repository_owner }}"
31+
32+
# Skip if user is a bot
33+
if [[ "$USER_TYPE" == "Bot" ]]; then
34+
echo "Skipping survey for bot user: $USERNAME"
35+
exit 0
36+
fi
37+
38+
# Skip if user is an org member
39+
if gh api "orgs/$ORG/members/$USERNAME" --silent; then
40+
echo "Skipping survey for org member: $USERNAME"
41+
exit 0
42+
fi
43+
44+
# Add survey comment for external contributor
45+
echo "Adding survey comment for external contributor: $USERNAME"
46+
gh pr comment ${PR_NUM} --repo ${{ github.repository }} --body "Thank you for your contribution @${USERNAME}! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this [survey](${SURVEY_URL})."
47+
env:
48+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}

benchmark-overhead/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ relative overhead.
5050
| Thread switch rate | # / s | Max observed thread context switch rate |
5151
| GC time | ms | Total amount of time spent paused for garbage collection |
5252
| Request mean | ms | Average time to handle a single web request (measured at the caller) |
53-
| Request p95 | ms | 95th percentile time to handle a single web requ4st (measured at the caller) |
53+
| Request p95 | ms | 95th percentile time to handle a single web request (measured at the caller) |
5454
| Iteration mean | ms | average time to do a single pass through the k6 test script |
5555
| Iteration p95 | ms | 95th percentile time to do a single pass through the k6 test script |
5656
| Peak threads | # | Highest number of running threads in the VM, including agent threads |

conventions/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ abstract class NettyAlignmentRule : ComponentMetadataRule {
143143
with(ctx.details) {
144144
if (id.group == "io.netty" && id.name != "netty") {
145145
if (id.version.startsWith("4.1.")) {
146-
belongsTo("io.netty:netty-bom:4.1.124.Final", false)
146+
belongsTo("io.netty:netty-bom:4.1.126.Final", false)
147147
} else if (id.version.startsWith("4.0.")) {
148148
belongsTo("io.netty:netty-bom:4.0.56.Final", false)
149149
}
@@ -439,7 +439,7 @@ codenarc {
439439
checkstyle {
440440
configFile = rootProject.file("buildscripts/checkstyle.xml")
441441
// this version should match the version of google_checks.xml used as basis for above configuration
442-
toolVersion = "11.0.0"
442+
toolVersion = "11.0.1"
443443
maxWarnings = 0
444444
}
445445

instrumentation-api-incubator/README.md renamed to declarative-config-bridge/README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
# OpenTelemetry Instrumentation API Incubator
2-
3-
Instrumentation API Incubator is a collection of libraries that provide additional functionality
4-
for OpenTelemetry instrumentation and auto-configuration. It is intended to be used by
5-
instrumentation authors and auto-configuration providers to enhance their capabilities and provide a
6-
more consistent experience when working with OpenTelemetry.
7-
8-
## Declarative Config Bridge
1+
# Declarative Config Bridge
92

103
Declarative Config Bridge allows instrumentation authors to access configuration in a uniform way,
114
regardless of the configuration source.
125

136
The bridge allows you to read configuration using the system property style when dealing with
147
declarative configuration.
158

16-
### Example
9+
## Example
1710

1811
As an example, let's look at the inferred spans configuration.
1912
First, there is a configuration method that reads the properties and is unaware of the source of the
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
plugins {
2+
id("otel.java-conventions")
3+
id("otel.publish-conventions")
4+
id("otel.nullaway-conventions")
5+
}
6+
7+
group = "io.opentelemetry.instrumentation"
8+
9+
dependencies {
10+
compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
11+
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi")
12+
implementation("io.opentelemetry:opentelemetry-api-incubator")
13+
14+
testImplementation("io.opentelemetry:opentelemetry-sdk-extension-incubator")
15+
testImplementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
16+
17+
compileOnly("com.google.code.findbugs:annotations")
18+
testCompileOnly("com.google.code.findbugs:annotations")
19+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package io.opentelemetry.instrumentation.api.incubator.sdk.config.bridge;
6+
package io.opentelemetry.instrumentation.config.bridge;
77

88
public final class ConfigPropertiesUtil {
99
private ConfigPropertiesUtil() {}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package io.opentelemetry.instrumentation.api.incubator.sdk.config.bridge;
6+
package io.opentelemetry.instrumentation.config.bridge;
77

88
import static io.opentelemetry.api.incubator.config.DeclarativeConfigProperties.empty;
99

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package io.opentelemetry.instrumentation.api.incubator.sdk.config.bridge;
6+
package io.opentelemetry.instrumentation.config.bridge;
77

88
import static io.opentelemetry.api.incubator.config.DeclarativeConfigProperties.empty;
99

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package io.opentelemetry.instrumentation.api.incubator.sdk.config.bridge;
6+
package io.opentelemetry.instrumentation.config.bridge;
77

88
import static org.assertj.core.api.Assertions.assertThat;
99

0 commit comments

Comments
 (0)