Skip to content

Commit

Permalink
Add support for Pika
Browse files Browse the repository at this point in the history
Add instrumentation support for Pika messages. The global messaging
extractor already covers the cases this instrumentation adds, so there's
no need for a specific extractor so far.
  • Loading branch information
luismiramirez committed Jun 18, 2024
1 parent 730aef0 commit 125c09d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changesets/add-support-for-pika.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bump: patch
type: add
---

Add support for Pika
7 changes: 7 additions & 0 deletions src/appsignal/opentelemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ def add_mysqlclient_instrumentation() -> None:
MySQLClientInstrumentor().instrument()


def add_pika_instrumentation() -> None:
from opentelemetry.instrumentation.pika import PikaInstrumentor

PikaInstrumentor().instrument()


def add_psycopg2_instrumentation() -> None:
from opentelemetry.instrumentation.psycopg2 import Psycopg2Instrumentor

Expand Down Expand Up @@ -158,6 +164,7 @@ def add_sqlite3_instrumentation() -> None:
"opentelemetry.instrumentation.jinja2": add_jinja2_instrumentation,
"opentelemetry.instrumentation.mysql": add_mysql_instrumentation,
"opentelemetry.instrumentation.mysqlclient": add_mysqlclient_instrumentation,
"opentelemetry.instrumentation.pika": add_pika_instrumentation,
"opentelemetry.instrumentation.psycopg2": add_psycopg2_instrumentation,
"opentelemetry.instrumentation.psycopg": add_psycopg_instrumentation,
"opentelemetry.instrumentation.pymysql": add_pymysql_instrumentation,
Expand Down

0 comments on commit 125c09d

Please sign in to comment.