Skip to content

Commit

Permalink
⬆️ Upgrade min gRPC version to 1.6 (#338)
Browse files Browse the repository at this point in the history
* ⬆️ update GRPC version

* 🚚 rename grpc package to end in v1_6

* 🚚 rename grpc-1.5 directory to grpc-1.6

* 📝 update docs to reflect gRPC min version
  • Loading branch information
ryandens authored Jul 15, 2021
1 parent b77175d commit 500fa76
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ List of supported frameworks with additional capabilities:
|--------------------------------------------------------------------------------------------------------|-----------------|
| [Apache HttpAsyncClient](https://hc.apache.org/index.html) | 4.1+ |
| [Apache HttpClient](https://hc.apache.org/index.html) | 4.0+ |
| [gRPC](https://github.com/grpc/grpc-java) | 1.5+ |
| [gRPC](https://github.com/grpc/grpc-java) | 1.6+ |
| [JAX-RS Client](https://javaee.github.io/javaee-spec/javadocs/javax/ws/rs/client/package-summary.html) | 2.0+ |
| [Micronaut](https://micronaut.io/) (basic support via Netty) | 1.0+ |
| [Netty](https://github.com/netty/netty) | 4.0+ |
Expand Down
2 changes: 1 addition & 1 deletion instrumentation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies{
implementation(project(":instrumentation:servlet:servlet-rw"))
implementation(project(":instrumentation:servlet:servlet-3.0"))
implementation(project(":instrumentation:spark-2.3"))
implementation(project(":instrumentation:grpc-1.5"))
implementation(project(":instrumentation:grpc-1.6"))
implementation(project(":instrumentation:okhttp:okhttp-3.0"))
implementation(project(":instrumentation:apache-httpclient-4.0"))
implementation(project(":instrumentation:jaxrs-client-2.0"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ muzzle {
pass {
group = "io.grpc"
module = "grpc-core"
versions = "[1.5.0,)"
versions = "[1.6.0,)"
// for body capture via com.google.protobuf.util.JsonFormat
extraDependency("io.grpc:grpc-protobuf:1.5.0")
extraDependency("io.grpc:grpc-netty:1.5.0")
extraDependency("io.grpc:grpc-protobuf:1.6.0")
extraDependency("io.grpc:grpc-netty:1.6.0")
}
}

Expand All @@ -41,7 +41,7 @@ protobuf {
}
plugins {
id("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:1.5.0"
artifact = "io.grpc:protoc-gen-grpc-java:1.6.0"
}
}
generateProtoTasks {
Expand All @@ -55,7 +55,7 @@ protobuf {
}

val versions: Map<String, String> by extra
val grpcVersion = "1.5.0"
val grpcVersion = "1.6.0"

dependencies {
api("io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-grpc-1.6:${versions["opentelemetry_java_agent"]}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6;

public class GrpcInstrumentationName {
public static final String PRIMARY = "grpc";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6;

import io.grpc.Metadata;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6;

import com.google.protobuf.Message;
import com.google.protobuf.util.JsonFormat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6;

import static net.bytebuddy.matcher.ElementMatchers.failSafe;
import static net.bytebuddy.matcher.ElementMatchers.isMethod;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.client;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.client;

import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.extendsClass;
import static java.util.Collections.singletonMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.client;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.client;

import com.google.auto.service.AutoService;
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.GrpcInstrumentationName;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.GrpcInstrumentationName;
import java.util.Collections;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.client;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.client;

import io.grpc.CallOptions;
import io.grpc.Channel;
Expand All @@ -26,8 +26,8 @@
import io.grpc.Metadata;
import io.grpc.MethodDescriptor;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.GrpcInstrumentationName;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.GrpcSpanDecorator;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.GrpcInstrumentationName;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.GrpcSpanDecorator;
import org.hypertrace.agent.core.config.InstrumentationConfig;
import org.hypertrace.agent.core.instrumentation.HypertraceSemanticAttributes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.server;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.server;

import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.safeHasSuperType;
import static io.opentelemetry.javaagent.extension.matcher.ClassLoaderMatcher.hasClassesNamed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.server;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.server;

import com.google.auto.service.AutoService;
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.GrpcInstrumentationName;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.GrpcInstrumentationName;
import java.util.Collections;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.server;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.server;

import io.grpc.ForwardingServerCall;
import io.grpc.ForwardingServerCallListener;
Expand All @@ -25,8 +25,8 @@
import io.grpc.ServerInterceptor;
import io.grpc.Status;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.GrpcInstrumentationName;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.GrpcSpanDecorator;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.GrpcInstrumentationName;
import io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.GrpcSpanDecorator;
import java.util.Map;
import org.hypertrace.agent.core.config.InstrumentationConfig;
import org.hypertrace.agent.core.instrumentation.HypertraceSemanticAttributes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5.server;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6.server;

import io.grpc.ServerCall;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6;

import com.google.protobuf.util.JsonFormat;
import io.grpc.ForwardingServerCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_5;
package io.opentelemetry.javaagent.instrumentation.hypertrace.grpc.v1_6;

import io.grpc.stub.StreamObserver;
import org.hypertrace.example.GreeterGrpc;
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ include("javaagent-tooling")
include("javaagent-bootstrap")
include("javaagent-core")
include("testing-common")
include("instrumentation:grpc-1.5")
findProject(":instrumentation:grpc-1.5")?.name = "grpc-1.5"
include("instrumentation:grpc-1.6")
findProject(":instrumentation:grpc-1.6")?.name = "grpc-1.6"
include("instrumentation:okhttp:okhttp-3.0")
findProject(":instrumentation:okhttp:okhttp-3.0")?.name = "okhttp-3.0"
include("otel-extensions")
Expand Down

0 comments on commit 500fa76

Please sign in to comment.