Open prat0318 opened 8 years ago
"label the client call by title" was meant wrt zipkin. I should have mentioned that. It would be used in bravado decorators when wrapping with zipkin client. The wrapper needed a "service_name" to be labelled. Other than zipkin, it is more like a _good_tohave.
How about?
client = SwaggerClient.from_url(example)
client.swagger_spec.client_spec_dict.get("info").get("title")
Swagger spec has a
info.title
attribute which gives the service name. This can be used to label the client call by title. There should be a way in bravado and swagger-py to get it.