Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: census-instrumentation/opencensus-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: orijtech/opencensus-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Apr 22, 2018

  1. trace: Span.add_annotation method

    Fixes #164
    
    Adds a convenience method so that users of the API
    don't have to import a lot in order to add an annotation.
    I found the need for this API while instrumenting a client.
    It avoids userland imports of:
    * datetime
    * attributes.Attributes
    * trace.time_event.Annotation
    * trace.time_event.TimeEvent
    
    abstracting the above work, to no imports and just:
    ```python
    span.add_annotation('Here is my annotation', key1='Foo', key2=12)
    ```
    
    I believe the other implementations have a
    method that helps add annotations.
    
    Language|MethodName|Resource
    ---|---|---
    Go|Span.Annotate|https://godoc.org/go.opencensus.io/trace#Span.Annotate
    Java|Span.addAnnotation|https://www.javadoc.io/doc/io.opencensus/opencensus-api/0.12.2
    odeke-em committed Apr 22, 2018
    Configuration menu
    Copy the full SHA
    4c10ca7 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2018

  1. Configuration menu
    Copy the full SHA
    1418d3b View commit details
    Browse the repository at this point in the history
  2. trace: update Span.add_annotation docs

    Address review feedback from Angela.
    odeke-em committed Apr 23, 2018
    Configuration menu
    Copy the full SHA
    8b2a7e3 View commit details
    Browse the repository at this point in the history
Loading