Skip to content

Commit a8ef1a5

Browse files
committed
Merge branch 'main' of github.com:elastic/elastic-otel-java into azure-resource-provider-update
2 parents 86edd50 + ba3bc32 commit a8ef1a5

File tree

4 files changed

+62
-33
lines changed

4 files changed

+62
-33
lines changed

.github/workflows/labeler.yml

Lines changed: 54 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
triage:
1515
runs-on: ubuntu-latest
1616
steps:
17+
1718
- name: Get token
1819
id: get_token
1920
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
@@ -26,33 +27,27 @@ jobs:
2627
"organization_projects": "write",
2728
"issues": "read"
2829
}
30+
2931
- name: Add agent-java label
30-
uses: actions/github-script@v7
31-
with:
32-
script: |
33-
github.rest.issues.addLabels({
34-
issue_number: context.issue.number,
35-
owner: context.repo.owner,
36-
repo: context.repo.repo,
37-
labels: ["agent-java"]
38-
})
32+
run: gh issue edit "${NUMBER}" --add-label "agent-java" --repo "${{ github.repository }}"
33+
env:
34+
NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
35+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
3937
- id: is_elastic_member
4038
uses: elastic/oblt-actions/github/is-member-of@v1
4139
with:
4240
github-org: "elastic"
4341
github-user: ${{ github.actor }}
4442
github-token: ${{ steps.get_token.outputs.token }}
43+
4544
- name: Add community and triage labels
4645
if: contains(steps.is_elastic_member.outputs.result, 'false') && github.actor != 'dependabot[bot]' && github.actor != 'elastic-renovate-prod[bot]' && github.actor != 'elastic-observability-automation[bot]'
47-
uses: actions/github-script@v7
48-
with:
49-
script: |
50-
github.rest.issues.addLabels({
51-
issue_number: context.issue.number,
52-
owner: context.repo.owner,
53-
repo: context.repo.repo,
54-
labels: ["community", "triage"]
55-
})
46+
run: gh issue edit "${NUMBER}" --add-label "community,triage" --repo "${{ github.repository }}"
47+
env:
48+
NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
49+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
5651
- name: Add comment for community PR
5752
if: contains(steps.is_elastic_member.outputs.result, 'false') && github.actor != 'dependabot[bot]' && github.actor != 'elastic-renovate-prod[bot]' && github.actor != 'elastic-observability-automation[bot]'
5853
uses: wow-actions/auto-comment@v1
@@ -64,12 +59,46 @@ jobs:
6459
It may take some time before we review a PR, so even if you don’t see activity for some time, it **does not** mean that we have forgotten about it.
6560
6661
Every once in a while we go through a process of prioritization, after which we are focussing on the tasks that were planned for the upcoming [milestone](https://github.com/elastic/apm-agent-java/milestones). The prioritization status is typically reflected through the PR labels. It could be pending triage, a candidate for a future milestone, or have a target milestone set to it.
62+
6763
- name: Assign new internal pull requests to project
68-
uses: elastic/[email protected]
69-
if: contains(steps.is_elastic_member.outputs.result, 'true') && github.event.pull_request
70-
env:
71-
MY_GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
64+
id: add-to-project
65+
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request'
66+
uses: elastic/oblt-actions/github/project-add@v1
7267
with:
73-
project: 'https://github.com/orgs/elastic/projects/454'
74-
project_id: '5882982'
75-
column_name: 'In Progress'
68+
github-token: ${{ steps.get_token.outputs.token }}
69+
project-id: 1829
70+
item-url: ${{ github.event.pull_request.url }}
71+
72+
- name: set status in project
73+
id: set-project-status-field
74+
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request'
75+
uses: elastic/oblt-actions/github/project-field-set@v1
76+
with:
77+
github-token: ${{ steps.get_token.outputs.token }}
78+
project-id: 1829
79+
item-id: ${{ steps.add-to-project.outputs.item-id }}
80+
field-name: 'Status'
81+
field-value: 'In Progress'
82+
83+
- name: set agent in project
84+
id: set-project-agent-field
85+
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request'
86+
uses: elastic/oblt-actions/github/project-field-set@v1
87+
with:
88+
github-token: ${{ steps.get_token.outputs.token }}
89+
project-id: 1829
90+
item-id: ${{ steps.add-to-project.outputs.item-id }}
91+
field-name: 'Agent'
92+
field-value: 'java'
93+
94+
- name: set iteration in project
95+
id: set-project-iteration-field
96+
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request'
97+
uses: elastic/oblt-actions/github/project-field-set@v1
98+
with:
99+
github-token: ${{ steps.get_token.outputs.token }}
100+
project-id: 1829
101+
item-id: ${{ steps.add-to-project.outputs.item-id }}
102+
field-name: 'Iteration'
103+
field-value: '@current'
104+
field-type: 'iteration'

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:29150cd940cc7f69407d978d5a19c86f4d9e67cf44e4d6ded787a497e8f27c9a
1+
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:c56628d8102cc34eeb4aaaf6279e88d2b23775569f9deeacc915b52f28163b8f
22
ARG JAR_FILE
33
ARG EXTENSION_JAR_FILE
44
COPY ${JAR_FILE} /javaagent.jar

gradle/libs.versions.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
shadow = "8.3.6"
33
jib = "3.4.5"
4-
spotless = "7.0.2"
4+
spotless = "7.0.3"
55
junit = "5.12.1"
66
autoservice = "1.1.1"
77

@@ -10,18 +10,18 @@ opentelemetryProto = "1.3.2-alpha"
1010

1111
# otel agent, we rely on the '*-alpha' and get the non-alpha dependencies transitively
1212
# updated from upstream agent with gradle/update-upstream.sh
13-
opentelemetryJavaagentAlpha = "2.14.0-alpha"
13+
opentelemetryJavaagentAlpha = "2.15.0-alpha"
1414

1515
# otel contrib
1616
# updated from upstream agent with gradle/update-upstream.sh
17-
opentelemetryContribAlpha = "1.44.0-alpha"
17+
opentelemetryContribAlpha = "1.45.0-alpha"
1818

1919
# otel semconv
2020
# updated from upstream agent with gradle/update-upstream.sh
2121
# While the semconv stable/incubating artifacts are provided as transitive dependencies, keeping
2222
# an explicit version here allows to easily override to a not-yet-released version.
23-
opentelemetrySemconv = "1.30.0"
24-
opentelemetrySemconvAlpha = "1.30.0-alpha"
23+
opentelemetrySemconv = "1.32.0"
24+
opentelemetrySemconvAlpha = "1.32.0-alpha"
2525

2626
[libraries]
2727

@@ -75,7 +75,7 @@ muzzleGenerationPlugin = { group = "io.opentelemetry.instrumentation.muzzle-gene
7575
# Ant should be kept in sync with the version used in the shadow plugin
7676
ant = "org.apache.ant:ant:1.10.15"
7777
# ASM is currently only used during compile-time, so it is okay to diverge from the version used in ByteBuddy
78-
asm = "org.ow2.asm:asm:9.7"
78+
asm = "org.ow2.asm:asm:9.8"
7979

8080
# Instrumented libraries
8181
openaiClient = "com.openai:openai-java:0.33.0"

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ dependencyResolutionManagement {
4848
}
4949

5050
plugins {
51-
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0" //for resolving testing JVMs
51+
id("org.gradle.toolchains.foojay-resolver-convention") version "0.10.0" //for resolving testing JVMs
5252
}

0 commit comments

Comments
 (0)