Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. ## Enable/Disable OpenTracing per Ingress Resource
  2.  
  3. It is possible to use annotations to enable or disable OpenTracing for a specific Ingress Resource. As mentioned in the prerequisites section, both `opentracing-tracer` and `opentracing-tracer-config` must be configured.
  4.  
  5. Consider the following two cases:
  6. 1. OpenTracing is globally disabled.
  7. 1. To enable OpenTracing for a specific Ingress Resource, use the server snippet annotation:
  8. ```yaml
  9. nginx.org/server-snippets: |
  10. opentracing on;
  11. ```
  12. 1. To enable OpenTracing for specific paths, (1) you need to use [Mergeable Ingress resources](../examples/mergeable-ingress-types/README.md) and (2) use the location snippets annotation to enable OpenTracing for the paths of a specific Minion Ingress resource:
  13. ```yaml
  14. nginx.org/location-snippets: |
  15. opentracing on;
  16. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement