add pika to docs (#1540)

This commit is contained in:
Nimrod Shlagman 2022-12-27 09:09:49 +02:00 committed by GitHub
parent 426d641590
commit ddbc40f907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -29,6 +29,7 @@ falcon~=2.0
grpcio~=1.27
mysql-connector-python~=8.0
psutil>=5
pika>=0.12.0
pymongo~=3.1
PyMySQL~=0.9.3
pyramid>=1.7

View File

@ -0,0 +1,7 @@
OpenTelemetry Pika Instrumentation
=====================================
.. automodule:: opentelemetry.instrumentation.pika
:members:
:undoc-members:
:show-inheritance:

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Instrument `pika` to trace RabbitMQ applications.
Instrument pika to trace RabbitMQ applications.
Usage
-----
@ -63,7 +63,7 @@ Usage
PikaInstrumentor.instrument_channel(channel, tracer_provider=tracer_provider)
* PikaInstrumentor also supports instrumenting with hooks that will be called when producing or consuming a message.
The hooks should be of type `Callable[[Span, bytes, BasicProperties], None]`
The hooks should be of type "Callable[[Span, bytes, BasicProperties], None]"
where the first parameter is the span, the second parameter is the message body
and the third parameter is the message properties