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

feat(http-client/injecting): adding 'withTrace' macro for Http Client #6

Conversation

090809
Copy link
Contributor

@090809 090809 commented Nov 29, 2022

No description provided.

@090809
Copy link
Contributor Author

090809 commented Nov 29, 2022

Probably WIP, 'cause I dislike impl of toTraceContextID function in Span class in flags. Probably it should be inherited from Measure.

But it must be implemented in other feature gates, such as config('injects.inherit_flags')

@freekmurze
Copy link
Member

Ping me when this one is ready for review.

@090809
Copy link
Contributor Author

090809 commented Jan 1, 2023

@freekmurze probably, it is
But there an span flags problem, I marked it with todo, which not for this PR, I think

@@ -94,4 +94,16 @@
* This class generates ids for both traces and spans.
*/
'id_generator' => Spatie\OpenTelemetry\Support\IdGenerator::class,

/*
* Injectors configure, how span will be injected into other structures
Copy link
Member

Choose a reason for hiding this comment

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

Let's first try to have the simplest implementation possible, without this config. Could you adjust this PR so that it just adds the macro and the tests to make sure that it works?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@freekmurze freekmurze merged commit dfe0d25 into spatie:main Jan 4, 2023
@freekmurze
Copy link
Member

Thanks, I'll simplify it even further on main

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