Я вижу только HTTP-команду (например, GET), но не полную конечную точку API в инструменте OpenTelemetry или APM. Это, вероятно, означает, что данные телеметрии не собираются или отображение URL-пути или ресурса для запросов API.
Код: Выделить всё
receivers:
otlp:
protocols:
http:
endpoint: "0.0.0.0:4318"
processors:
memory_limiter:
check_interval: 1s
limit_mib: 2000
batch:
metricstransform:
transforms:
- include: http.server.duration
match_type: strict
action: update
new_name: http.server.duration.updated
operations:
- action: update_label
new_label: http.method
label: http.method
- action: update_label
new_label: http.route
label: http.route
- action: update_label
new_label: http.status_code
label: http.status_code
exporters:
debug:
verbosity: detailed
otlp/elastic:
endpoint: "elastic-cloud.com:443"
headers:
Authorization: "Bearer mjfw"
tls:
insecure: false # Set to true for testing
service:
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, batch] # metricstransform removed for traces
exporters: [debug, otlp/elastic]
metrics:
receivers: [otlp]
processors: [metricstransform, memory_limiter, batch]
exporters: [debug, otlp/elastic]
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [debug, otlp/elastic]

Подробнее здесь: https://stackoverflow.com/questions/790 ... nly-http-v
Мобильная версия