OpenTelemetry Quiz
Quiz
traceparent: 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01Counter: Cumulative value that only increases (e.g., total requests, errors)
Gauge: Point-in-time value that can go up or down (e.g., CPU usage, memory, queue depth)
Histogram: Distribution of values with configurable buckets (e.g., request durations, response sizes)
Did you get it right?
-javaagent:opentelemetry-javaagent.jar.-javaagent:opentelemetry-javaagent.jar.from opentelemetry import trace
tracer = trace.get_tracer(__name__)
with tracer._____("process_order"):
process_payment()
update_inventory()start_as_current_span method creates a new span and sets it as the current span within the context manager.start_as_current_span method creates a new span and sets it as the current span within the context manager.Spanmetrics Connector: Generates metrics from trace spans (replaces deprecated spanmetrics processor).
RED Metrics Generated:
- Rate:
calls_total(total call count) - Errors: Error counts by status code
- Duration:
duration_milliseconds_sum/count
Dimensions include: service, operation, status_code
Did you get it right?
otel.bsp.max.export.batch.size is larger than otel.bsp.max.queue.size?traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01Attributes Processor: Simple operations on attributes
- insert, update, delete, hash
- Extract values with patterns
- Good for basic attribute management
Transform Processor: Advanced transformations using OTTL
- Complex regex replacements
- Conditional logic with ‘where’ clauses
- Cross-field operations
- Truncation, case changes
- More powerful but more complex syntax
Did you get it right?
https://<node>:10250/metrics/cadvisor.https://<node>:10250/metrics/cadvisor.processors:
filter:
traces:
span:
- 'attributes["_____"] == "/health"'Context Propagation: The mechanism that passes trace metadata (trace_id, span_id) between services via HTTP headers.
Why Essential:
- Without it, each service creates disconnected, independent spans
- Enables linking all spans from a single request into one trace
- Provides end-to-end visibility across distributed systems
- Allows reconstruction of the complete request journey
Transmitted via: W3C traceparent header
Did you get it right?
otel.bsp.max.export.batch.size?