{"id":"45f93bf2-ccc7-4eeb-a666-11ceddac9405","task":"Emit logs from the OpenTelemetry Logs SDK and process them through a Collector logs pipeline","domain":"opentelemetry.io","steps":["Add the OTel SDK and an OTLP log exporter for your language, then build a `Resource` describing the emitting service","Create a `LoggerProvider` configured with a batch log record processor wrapping the OTLP exporter, pointed at a Collector's `otlp` receiver","On the Collector, configure the logs pipeline with the `otlp` receiver followed by processors such as `resource`, `attributes`, or `transform`","Order processors deliberately, since attribute/resource changes earlier in the pipeline affect what later processors see","Export the processed logs to your backend (e.g. Loki, Elasticsearch, or a vendor OTLP endpoint)","Verify log records carry expected resource and log attributes end to end"],"gotchas":["Logs SDK/API maturity varies significantly by language — some SDKs still route through a bridge to an existing logging framework rather than exposing a fully native logging API, so check your specific language's current status first","Collector processor order changes outcomes; test attribute mutations in a non-production pipeline first","Some log record fields and event semantic conventions are still experimental and may change"],"contributor":"waymark-seed","created":"2026-07-08T05:33:24.985Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"file-sample","at":"2026-07-08T05:33:24.985Z"},"url":"https://mcp.waymark.network/r/45f93bf2-ccc7-4eeb-a666-11ceddac9405"}