Telemetryapi receiver not respecting OTEL_RESOURCE_ATTRIBUTES env var

Abierto
#2,047 8 comentarios 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

@RaphaelManke ya está trabajando en esto.

Desde el 7/3/2026.

  • #2159 de @RaphaelManke — abierto
  • #2160 de @RaphaelManke — cerrado sin fusionar

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
50/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
aws, go, javascript

Línea de trabajo

Comienza en el receptor telemetryapi y compara su gestión de recursos con la corrección descrita en el issue #1851. Reproduce la configuración de Lambda con OTEL_RESOURCE_ATTRIBUTES establecido en deployment.environment.name=dev y verifica después que el atributo aparezca en los logs y traces exportados.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug go

Describe the bug
Similar to #1851, it looks like the telemetryapi receiver is not picking up the additional resource attributes set in the OTEL_RESOURCE_ATTRIBUTES env variable.

Steps to reproduce

  • Create and instrument a Lambda function
  • Set the OTEL_RESOURCE_ATTRIBUTES environment variable with some key/values to put on each log statement i.e
    • OTEL_RESOURCE_ATTRIBUTES: 'deployment.environment.name=dev'
  • Enable telemetryapi receiver for logs and traces
  • Send logs to your OTEL backend of choice and check for the presence of the additional resource attributes

What did you expect to see?
I expected to see the 'deployment.environment.name' attribute in log statements

What did you see instead?
The values in OTEL_RESOURCE_ATTRIBUTES are missing from log statements

What version of collector/language SDK version did you use?

  • 0.19.0 (collector layer)
  • 0.18.0 (nodejs layer)

What language layer did you use?
javascript

Additional context
The fix looks like it might be very similar to the fix for #1851 => explicitly read the env var and add the key/values to the resource map.

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Lenguaje dominante
Go
Estrellas
433
Forks
249
Merge medio
1 d 12 h
PR fusionados (30 d)
39

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de open-telemetry/opentelemetry-lambda

Todos los issues de open-telemetry/opentelemetry-lambda

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.