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

Change span types for HTTP, web, and some datastore integrations #751

Merged
merged 1 commit into from
May 10, 2019

Conversation

delner
Copy link
Contributor

@delner delner commented May 8, 2019

To make the use of span.type a bit more consistent, this pull request changes the span types for many integrations:

  • Spans that measure web proxies (e.g. Nginx front end server) have type proxy
  • Spans that measure inbound HTTP behavior have type web
  • Spans that measure outbound HTTP behavior have type http
  • Spans that measure SQL database calls have type sql
  • Spans that measure calls to other datastores have specific types (like redis, elasticsearch, mongodb, etc.)

This should yield nicer looking "Total Time Spent by Type" graphs in the service view.

@delner delner added the integrations Involves tracing integrations label May 8, 2019
@delner delner requested review from brettlangdon and palazzem May 8, 2019 19:59
@delner delner self-assigned this May 8, 2019
palazzem
palazzem previously approved these changes May 8, 2019
@delner delner force-pushed the fix/span_types_in_integrations branch from 7e6c7af to 6d64a34 Compare May 8, 2019 20:10
@@ -6,7 +6,9 @@ module HTTP
METHOD = 'http.method'.freeze
STATUS_CODE = 'http.status_code'.freeze
TEMPLATE = 'template'.freeze
TYPE = 'http'.freeze
TYPE_INBOUND = 'web'.freeze
Copy link
Member

Choose a reason for hiding this comment

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

nice, I like this distinction "inbound" vs "outbound", makes more sense than "web" vs "http"

@delner delner merged commit 7b4f232 into master May 10, 2019
@delner delner deleted the fix/span_types_in_integrations branch May 10, 2019 15:22
@delner delner added this to the 0.23.2 milestone May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrations Involves tracing integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants