Skip to content

Commit d615a15

Browse files
authored
Merge pull request #2266 from microsoft/merge-vnext-into-main
Merge vnext into main
2 parents c6758de + d5580ac commit d615a15

File tree

367 files changed

+18051
-7570
lines changed

Some content is hidden

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

367 files changed

+18051
-7570
lines changed

.config/CredScanSuppressions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"file": [
66
"C:\\source\\otel\\testing-common\\src\\misc\\README.md",
77
"C:\\source\\otel\\testing-common\\src\\misc\\testing-keystore.p12",
8-
"C:\\source\\otel\\benchmark-overhead\\src\\test\\java\\io\\opentelemetry\\containers\\PostgresContainer.java"
8+
"C:\\source\\otel\\benchmark-overhead\\src\\test\\java\\io\\opentelemetry\\containers\\PostgresContainer.java",
9+
"C:\\source\\otel\\.github\\dependabot.yml"
910
],
1011
"_justification": "The secret is used only for testing."
1112
}

.github/workflows/ci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- vnext
78

89
jobs:
910
build:
@@ -38,10 +39,10 @@ jobs:
3839
- name: Build otel-fork
3940
working-directory: otel
4041
# javadoc fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
41-
run: ./gradlew publishToMavenLocal -x javadoc --stacktrace
42+
run: ./gradlew publishToMavenLocal -x javadoc
4243
- name: Test
4344
# TODO enable build cache, either --build-cache here, or org.gradle.caching=true in gradle.properties
44-
run: ./gradlew check --stacktrace
45+
run: ./gradlew check
4546
- name: Upload snapshot
4647
# only upload from windows since only that build includes etw
4748
if: matrix.os == 'windows-2019'
@@ -97,7 +98,7 @@ jobs:
9798
- name: Build otel-fork
9899
working-directory: otel
99100
# javadoc fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
100-
run: ./gradlew publishToMavenLocal -x javadoc --stacktrace
101+
run: ./gradlew publishToMavenLocal -x javadoc
101102
- name: Test
102103
# TODO enable build cache, either --build-cache here, or org.gradle.caching=true in gradle.properties
103104
run: ./gradlew ${{ matrix.module }}:smokeTest

.github/workflows/pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ jobs:
4040
- name: Build otel-fork
4141
working-directory: otel
4242
# javadoc fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
43-
run: ./gradlew publishToMavenLocal -x javadoc --stacktrace
43+
run: ./gradlew publishToMavenLocal -x javadoc
4444
- name: Test
4545
# TODO enable build cache, either --build-cache here, or org.gradle.caching=true in gradle.properties
46-
run: ./gradlew check --stacktrace
46+
run: ./gradlew check assemble
4747
- name: Upload snapshot
4848
# only upload from windows since only that build includes etw
4949
if: matrix.os == 'windows-2019'

.lgtm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ extraction:
66
index:
77
java_version: 11
88
build_command: |
9+
# fails without this, guessing similar to https://github.com/github/codeql-action/issues/972
10+
export JAVA_TOOL_OPTIONS=--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
11+
912
# needs Java 11, otherwise this could be done in before_index
1013
# javadoc fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
1114
./otel/gradlew --project-dir otel publishToMavenLocal -x javadoc

.pipelines/pipeline.user.windows.buddy.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,4 @@ build:
1313
artifacts:
1414
- to: 'Artifacts'
1515
include:
16-
- '**/build/libs/*.jar'
17-
- '**/build/libs/*-sources.jar'
18-
- '**/build/libs/*-javadoc.jar'
19-
- '**/build/libs/*.pom'
20-
exclude:
21-
- 'buildSrc/**/*'
16+
- 'agent/agent/build/libs/*.jar'

.pipelines/pipeline.user.windows.official.nonrelease.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,4 @@ build:
2020
artifacts:
2121
- to: 'Artifacts'
2222
include:
23-
- '**/build/libs/*.jar'
24-
- '**/build/libs/*-sources.jar'
25-
- '**/build/libs/*-javadoc.jar'
26-
- '**/build/libs/*.pom'
27-
exclude:
28-
- 'buildSrc/**/*'
23+
- 'agent/agent/build/libs/*.jar'

.pipelines/pipeline.user.windows.official.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ build:
1616
- !!buildcommand
1717
name: 'Assemble ApplicationInsights-Java JARs'
1818
command: '.scripts/gradle.cmd'
19-
arguments: 'assemble copyLibsToGlobalArtifactsFolder -DisRelease=true -Pai.etw.native.build=release'
19+
arguments: 'publishToMavenLocal -DisRelease=true -Pai.etw.native.build=release'
2020
artifacts:
2121
- to: 'Artifacts'
2222
include:
23-
- '**/build/libs/*.jar'
24-
- '**/build/libs/*-sources.jar'
25-
- '**/build/libs/*-javadoc.jar'
26-
- '**/build/libs/*.pom'
27-
exclude:
28-
- 'buildSrc/**/*'
23+
- '~/.m2/repository/com/microsoft/azure/applicationinsights-agent/*/*.jar'
24+
- '~/.m2/repository/com/microsoft/azure/applicationinsights-agent/*/*-sources.jar'
25+
- '~/.m2/repository/com/microsoft/azure/applicationinsights-agent/*/*-javadoc.jar'
26+
- '~/.m2/repository/com/microsoft/azure/applicationinsights-agent/*/*.pom'

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
# Version 3.3.0-BETA
4+
* Update OpenTelemetry to 1.13 [#2257](https://github.com/microsoft/ApplicationInsights-Java/pull/2257).
5+
* Deprecate logs' LoggingLevel custom property [#2254](https://github.com/microsoft/ApplicationInsights-Java/pull/2254).
6+
* Add support for OpenTelemetry metrics API
7+
* Lots of refactorings and improvements.
8+
39
# Version 3.2.11 GA
410
* Turn off Statsbeat when unable to reach ingestion service. [#2221](https://github.com/microsoft/ApplicationInsights-Java/pull/2221).
511

agent/agent-bootstrap/build.gradle.kts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,16 @@ plugins {
33
id("ai.sdk-version-file")
44
}
55

6-
val otelInstrumentationAlphaVersion = "1.10.0+ai.patches-alpha"
6+
val otelInstrumentationAlphaVersion = "1.14.0.1-alpha"
77

88
dependencies {
9-
implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-bootstrap") {
10-
exclude("org.slf4j", "slf4j-simple")
11-
}
12-
implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-api")
13-
implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-api-annotation-support")
14-
implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-instrumentation-api")
9+
// needed to access io.opentelemetry.instrumentation.api.aisdk.MicrometerUtil
10+
// TODO (heya) remove this when updating to upstream micrometer instrumentation
11+
compileOnly("io.opentelemetry.instrumentation:opentelemetry-instrumentation-api")
12+
1513
implementation("ch.qos.logback:logback-classic")
1614
implementation("ch.qos.logback.contrib:logback-json-classic")
1715

18-
implementation("io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-jaxrs-common-bootstrap:$otelInstrumentationAlphaVersion")
19-
implementation("io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-kafka-clients-0.11-bootstrap:$otelInstrumentationAlphaVersion")
20-
implementation("io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-undertow-1.4-bootstrap:$otelInstrumentationAlphaVersion")
21-
2216
// not using gson because it has dependency on java.sql.*, which is not available in Java 9+ bootstrap class loader
2317
// only complaint so far about moshi is that it doesn"t give line numbers when there are json formatting errors
2418
implementation("com.squareup.moshi:moshi")

agent/agent-bootstrap/gradle.lockfile

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,9 @@ com.google.guava:guava-bom:31.0.1-jre=runtimeClasspath
99
com.squareup.moshi:moshi:1.11.0=runtimeClasspath
1010
com.squareup.okio:okio:1.17.5=runtimeClasspath
1111
io.netty:netty-bom:4.1.72.Final=runtimeClasspath
12-
io.opentelemetry.instrumentation:opentelemetry-instrumentation-api-annotation-support:1.10.0+ai.patches-alpha=runtimeClasspath
13-
io.opentelemetry.instrumentation:opentelemetry-instrumentation-api:1.10.0+ai.patches-alpha=runtimeClasspath
14-
io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:1.10.0+ai.patches-alpha=runtimeClasspath
15-
io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-jaxrs-common-bootstrap:1.10.0+ai.patches-alpha=runtimeClasspath
16-
io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-kafka-clients-0.11-bootstrap:1.10.0+ai.patches-alpha=runtimeClasspath
17-
io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-servlet-common-bootstrap:1.10.0+ai.patches-alpha=runtimeClasspath
18-
io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-undertow-1.4-bootstrap:1.10.0+ai.patches-alpha=runtimeClasspath
19-
io.opentelemetry.javaagent:opentelemetry-javaagent-bootstrap:1.10.0+ai.patches-alpha=runtimeClasspath
20-
io.opentelemetry.javaagent:opentelemetry-javaagent-instrumentation-api:1.10.0+ai.patches-alpha=runtimeClasspath
21-
io.opentelemetry:opentelemetry-api:1.10.0=runtimeClasspath
22-
io.opentelemetry:opentelemetry-bom-alpha:1.10.0-alpha=runtimeClasspath
23-
io.opentelemetry:opentelemetry-bom:1.10.0=runtimeClasspath
24-
io.opentelemetry:opentelemetry-context:1.10.0=runtimeClasspath
25-
io.opentelemetry:opentelemetry-semconv:1.10.0-alpha=runtimeClasspath
12+
io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:1.14.0.1-alpha=runtimeClasspath
13+
io.opentelemetry:opentelemetry-bom-alpha:1.13.0-alpha=runtimeClasspath
14+
io.opentelemetry:opentelemetry-bom:1.13.0=runtimeClasspath
2615
org.junit:junit-bom:5.7.2=runtimeClasspath
27-
org.slf4j:slf4j-api:1.7.32=runtimeClasspath
16+
org.slf4j:slf4j-api:1.7.36=runtimeClasspath
2817
empty=

0 commit comments

Comments
 (0)