Zipkin Decorator¶
-
class
swagger_zipkin.zipkin_decorator.
ZipkinClientDecorator
(client)¶ A wrapper to swagger client (swagger-py or bravado) to pass on zipkin headers to the service call.
Even though client is initialised once, all the calls made will have independent spans.
Parameters: client ( swaggerpy.client.SwaggerClient
orbravado.client.SwaggerClient
.) – Swagger Client
-
class
swagger_zipkin.zipkin_decorator.
ZipkinResourceDecorator
(resource)¶ A wrapper to the swagger resource.
Parameters: resource ( swaggerpy.client.Resource
orbravado_core.resource.Resource
) – A resource object. eg. client.pet, client.store.