Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing recommended resource attributes to AWS Lambda detector #3148

Conversation

matej-g
Copy link
Contributor

@matej-g matej-g commented Jan 13, 2023

Adds missing resource attributes in accordance with the FaaS specification (https://opentelemetry.io/docs/reference/specification/resource/semantic_conventions/faas/), in particular faas.instance and faas.max_memory.

Adjusts relevant tests as well.

- faas.instance (corresponds to log stream name)
- faas.max_memory

Signed-off-by: Matej Gera <matej.gera@coralogix.com>
Signed-off-by: Matej Gera <matej.gera@coralogix.com>
Signed-off-by: Matej Gera <matej.gera@coralogix.com>
Signed-off-by: Matej Gera <matej.gera@coralogix.com>
Signed-off-by: Matej Gera <matej.gera@coralogix.com>
@codecov
Copy link

codecov bot commented Jan 13, 2023

Codecov Report

Merging #3148 (f3ad28f) into main (fdbade3) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #3148   +/-   ##
=====================================
  Coverage   69.2%   69.3%           
=====================================
  Files        147     147           
  Lines       6884    6893    +9     
=====================================
+ Hits        4768    4777    +9     
  Misses      2000    2000           
  Partials     116     116           
Impacted Files Coverage Δ
detectors/aws/lambda/detector.go 92.8% <100.0%> (+3.3%) ⬆️

@MrAlias
Copy link
Contributor

MrAlias commented Jan 14, 2023

Please update this branch with main so this PR can be merged.

@matej-g
Copy link
Contributor Author

matej-g commented Jan 16, 2023

@MrAlias done, thank you 🙇

@MrAlias MrAlias merged commit 4dbdb21 into open-telemetry:main Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants