From e02b167f6b498c0db52d29ce6bcbe90c2a4ecc49 Mon Sep 17 00:00:00 2001 From: Sean Kenny Date: Tue, 15 Nov 2022 14:22:18 +0000 Subject: [PATCH 1/2] Add grpc.aio instrumentation to be auto-instrumented PR #1245 added grpc.aio instrumentation. It included the auto instrumentor for grpc.aio but did not include the entry-points hook for it to be run automatically on boot. Currently, you need to manually include the instrumentor and call it. This makes that automatic and in line with the plain grpc instrumentation. --- .../opentelemetry-instrumentation-grpc/pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instrumentation/opentelemetry-instrumentation-grpc/pyproject.toml b/instrumentation/opentelemetry-instrumentation-grpc/pyproject.toml index 28ea26bbef..c379309694 100644 --- a/instrumentation/opentelemetry-instrumentation-grpc/pyproject.toml +++ b/instrumentation/opentelemetry-instrumentation-grpc/pyproject.toml @@ -46,6 +46,8 @@ test = [ [project.entry-points.opentelemetry_instrumentor] grpc_client = "opentelemetry.instrumentation.grpc:GrpcInstrumentorClient" grpc_server = "opentelemetry.instrumentation.grpc:GrpcInstrumentorServer" +grpc_aio_client = "opentelemetry.instrumentation.grpc:GrpcAioInstrumentorClient" +grpc_aio_server = "opentelemetry.instrumentation.grpc:GrpcAioInstrumentorServer" [project.urls] Homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-grpc" From 847d3039af38c816e888dc9572176ceeb530c001 Mon Sep 17 00:00:00 2001 From: Sean Kenny Date: Tue, 15 Nov 2022 14:40:28 +0000 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 626c29bb2b..e4b081504e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#1424](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1424)) - Remove db.name attribute from Redis instrumentation ([#1427](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1427)) +- Add grpc.aio instrumentation to package entry points + ([#1442](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1442)) ## Version 1.14.0/0.35b0 (2022-11-03)