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: initial implementation of otel-profiling-ruby #1

Merged
merged 6 commits into from
Sep 28, 2022

Conversation

korniltsev
Copy link
Collaborator

No description provided.

end

def profile_id(span)
span.context.span_id.bytes.map { |b| format("%02x", b) }.join
Copy link
Member

Choose a reason for hiding this comment

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

Maybe you want to do something like

"\x01\x02".unpack("H*")
 => ["0102"] 

end

def query(profile_id)
format("%<app_name>s{profile_id=\"%<profile_id>s\"}", { app_name: @app_name,
Copy link
Member

Choose a reason for hiding this comment

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

please use "#{app_name}" syntax, it's a lot more common in ruby world

@petethepig petethepig marked this pull request as ready for review September 28, 2022 02:43
@petethepig petethepig self-requested a review September 28, 2022 02:49
@petethepig petethepig merged commit 06ba316 into main Sep 28, 2022
@korniltsev korniltsev deleted the feat/otel_initial_version branch September 29, 2022 07:14
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

2 participants