Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Add HTTP span attribute keys #9

Merged
merged 1 commit into from
Feb 8, 2019
Merged

Add HTTP span attribute keys #9

merged 1 commit into from
Feb 8, 2019

Conversation

draffensperger
Copy link
Contributor

This adds constants for HTTP span labels from the spec plus a few more unofficial ones to accommodate fields in the browser performance timing API.

The opencensus-instrumentation-http package has similar constants as static attributes of a class but my initial impulse is that these are pretty static since they're in the official specs so copying them is cleaner than adding an dependency on the whole package.

@draffensperger draffensperger merged commit 3082b32 into master Feb 8, 2019
@draffensperger draffensperger deleted the attribute-keys branch February 8, 2019 20:21
RenaultAI pushed a commit to RenaultAI/opencensus-web that referenced this pull request Nov 20, 2019
Example config.yaml:

stackdriver:
  project: "projectid"
  enableTraces: true

zipkin:
  endpoint: "http://localhost:9411/api/v2/spans"

Exporter will export the traces both to Stackdriver
and Zipkin.

Updates census-instrumentation#8.
RenaultAI pushed a commit to RenaultAI/opencensus-web that referenced this pull request Nov 20, 2019
…nsus-instrumentation#536)

* Add span attribute key mapping support (census-instrumentation#9)

Many libraries and services didn't implement consistent naming for their span attribute keys, this feature provides the capability of making the attribute keys consistent for different libraries and services without the need to change their code.

* PR Feedback

* PR feedback

* type on test

Fix nil return and avoid lookup if overwritting

Better syntax to avoid lookup when overwritting

Support same replacement for multiple keys

* Simplify handling of attribute related config
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants