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

fix(taps): Ensure metric tags coming from stream context can be JSON-serialized #1238

Merged
merged 2 commits into from
Dec 6, 2022

Conversation

edgarrmondragon
Copy link
Collaborator

@edgarrmondragon edgarrmondragon commented Dec 2, 2022

Otherwise adding objects in a streams context that can't be JSON-serialized cause the tap to fail.

For example, pendulum objects in tap-lastfm.

Closes #1239

@edgarrmondragon
Copy link
Collaborator Author

cc @rabidaudio this is blocking tap-lastfm from working with the latest SDK.

@codecov
Copy link

codecov bot commented Dec 2, 2022

Codecov Report

Merging #1238 (20b0e9d) into main (c94ae17) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1238   +/-   ##
=======================================
  Coverage   83.67%   83.67%           
=======================================
  Files          42       42           
  Lines        3909     3909           
  Branches      666      666           
=======================================
  Hits         3271     3271           
  Misses        474      474           
  Partials      164      164           
Impacted Files Coverage Δ
singer_sdk/metrics.py 96.03% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@edgarrmondragon edgarrmondragon force-pushed the fix/json-serializable-metric-tags branch from 1888f57 to 5c8987d Compare December 2, 2022 23:14
@edgarrmondragon edgarrmondragon changed the title fix: Ensure metric tags coming from stream context can be JSON-serialized fix(taps): Ensure metric tags coming from stream context can be JSON-serialized Dec 2, 2022
@edgarrmondragon edgarrmondragon merged commit 9d6a48a into main Dec 6, 2022
@edgarrmondragon edgarrmondragon deleted the fix/json-serializable-metric-tags branch December 6, 2022 23:11
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.

[Bug]: Tap fails when metric tags are not JSON serializable
1 participant