You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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?
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: - name: autoinstrumentation-go image: otel/autoinstrumentation-go imagePullPolicy: IfNotPresent env: - name: OTEL_METRICS_EXPORTER value: otlp - name: OTEL_GO_AUTO_TARGET_EXE value: /otel-go-testing-final - name: OTEL_EXPORTER_OTLP_ENDPOINT value: "http://apm-collector.opentelemetry-operator-system.svc.cluster.local:4318" - name: OTEL_SERVICE_NAME value: "animal-bird-app" securityContext: privileged: true runAsUser: 0 - name: animal-bird-app image: asia-southeast2-docker.pkg.dev/lip-prod-sre-3a7f/apm-golang/otel-go-testing-final:v1 # Replace with your image repository if you're using a container registry ports: - containerPort: 8080
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
The text was updated successfully, but these errors were encountered: