File tree Expand file tree Collapse file tree 3 files changed +31
-7
lines changed
otel-extensions/src/main/java/org/hypertrace/agent/otel/extensions Expand file tree Collapse file tree 3 files changed +31
-7
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ tasks {
5252
5353 mergeServiceFiles()
5454
55- relocate(" org.hypertrace.agent" , " io.opentelemetry.javaagent.shaded.org.hypertrace.agent" )
56-
5755 relocate(" com.fasterxml.jackson" , " io.opentelemetry.javaagent.shaded.org.hypertrace.shaded.com.fasterxml.jackson" )
5856 relocate(" com.google" , " io.opentelemetry.javaagent.shaded.org.hypertrace.shaded.com.google" )
5957 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 {
3232
3333
3434 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-
4035 // config in javaagent-core uses protobuf and jackson
4136 // shade to the same location as OTEL, because the package prefix is used in classloader instrumentation
4237 // 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