File tree 3 files changed +31
-7
lines changed
otel-extensions/src/main/java/org/hypertrace/agent/otel/extensions
3 files changed +31
-7
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ tasks {
52
52
53
53
mergeServiceFiles()
54
54
55
- relocate(" org.hypertrace.agent" , " io.opentelemetry.javaagent.shaded.org.hypertrace.agent" )
56
-
57
55
relocate(" com.fasterxml.jackson" , " io.opentelemetry.javaagent.shaded.org.hypertrace.shaded.com.fasterxml.jackson" )
58
56
relocate(" com.google" , " io.opentelemetry.javaagent.shaded.org.hypertrace.shaded.com.google" )
59
57
relocate(" google.protobuf" , " io.opentelemetry.javaagent.shaded.org.hypertrace.shaded.google.protobuf" )
Original file line number Diff line number Diff line change @@ -32,11 +32,6 @@ tasks {
32
32
33
33
34
34
shadowJar {
35
- // shade to match with the package prefix for the classloader instrumentation
36
- relocate(" org.hypertrace.agent" , " io.opentelemetry.javaagent.shaded.org.hypertrace.agent" ) {
37
- exclude(" org.hypertrace.agent.instrument.*" )
38
- }
39
-
40
35
// config in javaagent-core uses protobuf and jackson
41
36
// shade to the same location as OTEL, because the package prefix is used in classloader instrumentation
42
37
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/master/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/Constants.java#L25
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright The Hypertrace Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package org .hypertrace .agent .otel .extensions ;
18
+
19
+ import com .google .auto .service .AutoService ;
20
+ import io .opentelemetry .javaagent .spi .BootstrapPackagesProvider ;
21
+ import java .util .Arrays ;
22
+ import java .util .List ;
23
+
24
+ @ AutoService (BootstrapPackagesProvider .class )
25
+ public class HypertraceBootstrapPackagesProvider implements BootstrapPackagesProvider {
26
+
27
+ @ Override
28
+ public List <String > getPackagePrefixes () {
29
+ return Arrays .asList ("org.hypertrace.agent" );
30
+ }
31
+ }
You can’t perform that action at this time.
0 commit comments