Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Enable/Disable OpenTracing per Ingress Resource
- 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.
- Consider the following two cases:
- 1. OpenTracing is globally disabled.
- 1. To enable OpenTracing for a specific Ingress Resource, use the server snippet annotation:
- ```yaml
- nginx.org/server-snippets: |
- opentracing on;
- ```
- 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:
- ```yaml
- nginx.org/location-snippets: |
- opentracing on;
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement