Skip to content

Conversation

saartochner-lumigo
Copy link
Contributor

No description provided.

Copy link
Contributor

@nirLumigo nirLumigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! :)

if key in event:
add_execution_tag(key, event[key])
try:
value = safe_get(event, key.split(".")) # type: ignore
Copy link
Contributor

@nirLumigo nirLumigo Feb 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user won't be able to auto-tag keys that have "." in them. Are we ok with this?
We can use json format instead which is a bit more complicated but will allow using ".".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes!
we can support escaping, but this is future work IMO.
WDYT?

@codecov
Copy link

codecov bot commented Feb 22, 2022

Codecov Report

Merging #241 (8b92a2b) into master (827a7a9) will increase coverage by 0.59%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #241      +/-   ##
==========================================
+ Coverage   96.21%   96.81%   +0.59%     
==========================================
  Files          11       24      +13     
  Lines         952     2073    +1121     
==========================================
+ Hits          916     2007    +1091     
- Misses         36       66      +30     
Impacted Files Coverage Δ
lumigo_tracer/user_utils.py 95.08% <0.00%> (-4.92%) ⬇️
lumigo_tracer/spans_container.py 97.92% <0.00%> (-1.45%) ⬇️
lumigo_tracer/parsers/event_parser.py
lumigo_tracer/utils.py
lumigo_tracer/sync_http/handler.py
lumigo_tracer/parsers/utils.py
lumigo_tracer/parsers/parser.py
lumigo_tracer/sync_http/sync_hook.py
lumigo_tracer/parsers/http_data_classes.py
lumigo_tracer/auto_instrument_handler.py 100.00% <0.00%> (ø)
... and 20 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2cc2374...8b92a2b. Read the comment docs.

@saartochner-lumigo saartochner-lumigo merged commit f63c856 into master Feb 23, 2022
@saartochner-lumigo saartochner-lumigo deleted the nested-auto-exec-tags branch February 23, 2022 10:31
saartochner-lumigo pushed a commit that referenced this pull request Feb 23, 2022
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.

2 participants