opentracing / opentracing-php

OpenTracing API for PHP
Apache License 2.0
505 stars 56 forks source link

[EXT] `producer` and `consumer` span kinds #10

Closed tPl0ch closed 7 years ago

tPl0ch commented 7 years ago

In https://github.com/opentracing/specification/blob/master/semantic_conventions.md#span-tags-table it is clearly stated that spans not only consist of RPC client and server relationships, but also producer and consumer relationships when you are in a messaging context.

This PR adds those missing Tag constants as SPAN_KIND_MESSAGE_BUS_PRODUCER and SPAN_KIND_MESSAGE_BUS_CONSUMER.

jcchavezs commented 7 years ago

LGTM