feat(aws-lambda): Add exec. environment and invocation attributes

Abierto
#8,080 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
aws, python

Línea de trabajo

Start by reading the AWS Lambda integration and its tests in sentry-python; the issue does not name specific files or test paths. Check the linked sentry-conventions#730 dependency before work. Done means environment attributes are cached once and invocation attributes reflect cold starts, timing, remaining time, and the CloudWatch logs URL.

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

Descripción

Feature Integration: AWS Lambda Python Traces

Cold starts and durations are invisible on spans: duration, remaining time and the CloudWatch URL are only added as extras to error events.

Cold starts and durations are currently invisible and only added as extras to error events. Add the following attributes:

Environment (cached once)

  • faas.instance: log stream name
  • faas.max_memory: AWS_LAMBDA_FUNCTION_MEMORY_SIZE × 1,048,576
  • faas.entry_point: _HANDLER
  • aws.lambda.initialization_type: AWS_LAMBDA_INITIALIZATION_TYPE

Invocation

  • faas.coldstart: true on the first invocation in the environment
  • aws.lambda.proactive_initialization: true on a first invocation that starts > 10 s after the SDK loaded (no request waited for the init)
  • aws.lambda.execution_duration_in_millis / faas.duration_in_ms: handler duration
  • aws.lambda.remaining_time_in_millis: at invocation end
  • aws.cloudwatch.logs.url

Depends on getsentry/sentry-conventions#730

Lenguaje dominante
Python
Estrellas
2.2k
Forks
713
Merge medio
1 d 16 min
PR fusionados (30 d)
113

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 getsentry/sentry-python

Todos los issues de getsentry/sentry-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.