Skip to content

Conversation

@arielvalentin
Copy link
Contributor

Aligns the span name closer to the specification instead of using Ruby class/method naming syntax

Fixes #961

@arielvalentin arielvalentin self-assigned this Nov 5, 2024
Copy link
Member

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

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

Looks good to me. Added a couple of queries for commented out assertions.

_(last_response.body).must_equal 'created new item'
_(last_response.ok?).must_equal true
_(span.name).must_equal 'ExampleController#new_item'
# _(span.name).must_equal 'GET example/new_item'
Copy link
Member

Choose a reason for hiding this comment

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

Should these be updated or removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh my. That definitely was a mistake on my part.

Thank you for pointing this out!

get 'internal_server_error'

_(span.name).must_equal 'ExampleController#internal_server_error'
# _(span.name).must_equal 'GET example/show'
Copy link
Member

Choose a reason for hiding this comment

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

Should these be updated or removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😳

Copy link
Contributor

@xuan-cao-swi xuan-cao-swi left a comment

Choose a reason for hiding this comment

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

👍

@arielvalentin arielvalentin merged commit acac4fd into open-telemetry:main Nov 15, 2024
57 checks passed
@arielvalentin arielvalentin deleted the action-pack-http-route branch November 15, 2024 20:09
@github-actions github-actions bot mentioned this pull request Nov 15, 2024
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.

Use semconv span naming in ActionPack

3 participants