Open navnitkum opened 1 month ago
This auto-instrumentation project is currently for traces only, it will not generate metrics for you. Are you instrumenting your app for metrics some other way?
no i thought auto-instrumentation could have helped me but was not aware that it doesn't work for metrics any plan for the same in near future?
It's one of our long term goals, but not for the near future unfortunately
Describe the bug
A clear and concise description of what the bug is.
Environment
To Reproduce
otel-collector config
Steps to reproduce the behavior:
deploy the collector and also the animal app `apiVersion: apps/v1 kind: Deployment metadata: name: animal-bird-app namespace: opentelemetry-operator-system labels: app: animal-bird-app spec: replicas: 1 selector: matchLabels: app: animal-bird-app template: metadata: labels: app: animal-bird-app spec: containers:
Expected behavior
2024-10-16T16:51:05.305Z info TracesExporter {"kind": "exporter", "data_type": "traces", "name": "debug", "resource spans": 1, "spans": 5} 2024-10-16T16:56:36.942Z info TracesExporter {"kind": "exporter", "data_type": "traces", "name": "debug", "resource spans": 1, "spans": 2} 2024-10-16T16:56:41.878Z info TracesExporter {"kind": "exporter", "data_type": "traces", "name": "debug", "resource spans": 1, "spans": 3}
A clear and concise description of what you expected to happen. the metrics should also come as the auto-instrumentation behaviour but only traces are coming below is the collector logs