-
Notifications
You must be signed in to change notification settings - Fork 32
Labels
Description
The bug
The ordered list below code blocks work, but the code callouts do not render within the code block.
EDIT: There is an additional bug where a code block and the corresponding list after the code block have both 8 elements. The following error is reported:
Code block has 7 callouts but the following list only has 8
Code block here
receivers: <1>
# ...
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors: <2>
# ...
memory_limiter:
check_interval: 1s
limit_mib: 2000
batch:
exporters:
debug:
verbosity: detailed <3>
otlp: <4>
# Elastic APM server https endpoint without the "https://" prefix
endpoint: "${env:ELASTIC_APM_SERVER_ENDPOINT}" <5> <7>
headers:
# Elastic APM Server secret token
Authorization: "Bearer ${env:ELASTIC_APM_SECRET_TOKEN}" <6> <7>
service:
pipelines:
traces:
receivers: [otlp]
processors: [..., memory_limiter, batch]
exporters: [debug, otlp]
metrics:
receivers: [otlp]
processors: [..., memory_limiter, batch]
exporters: [debug, otlp]
logs: <8>
receivers: [otlp]
processors: [..., memory_limiter, batch]
exporters: [debug, otlp]- The receivers, like the OTLP receiver, that forward data emitted by APM agents, or the host metrics receiver.
- We recommend using the Batch processor and the memory limiter processor. For more information, see recommended processors.
- The debug exporter is helpful for troubleshooting, and supports configurable verbosity levels:
basic(default),normal, anddetailed. - Elastic {observability} endpoint configuration. APM Server supports a ProtoBuf payload via both the OTLP protocol over gRPC transport (OTLP/gRPC) and the OTLP protocol over HTTP transport (OTLP/HTTP). To learn more about these exporters, see the OpenTelemetry Collector documentation: OTLP/HTTP Exporter or OTLP/gRPC exporter. When adding an endpoint to an existing configuration an optional name component can be added, like
otlp/elastic, to distinguish endpoints as described in the OpenTelemetry Collector Configuration Basics. - Hostname and port of the APM Server endpoint. For example,
elastic-apm-server:8200. - Credential for Elastic APM secret token authorization (
Authorization: "Bearer a_secret_token") or API key authorization (Authorization: "ApiKey an_api_key"). - Environment-specific configuration parameters can be conveniently passed in as environment variables documented here (e.g.
ELASTIC_APM_SERVER_ENDPOINTandELASTIC_APM_SECRET_TOKEN). - [preview] To send OpenTelemetry logs to {stack} version 8.0+, declare a
logspipeline.
What I expected
Users should see both the callout in the code and corresponding callout below the code block.
Example
