Skip to content

Initial implementation#1

Merged
haystack-travis-admin merged 13 commits intoExpediaDotCom:masterfrom
rhilfers:initial-implementation
Mar 5, 2019
Merged

Initial implementation#1
haystack-travis-admin merged 13 commits intoExpediaDotCom:masterfrom
rhilfers:initial-implementation

Conversation

@rhilfers
Copy link
Copy Markdown
Contributor

Hello! Please review my implementation of haystack bindings for opentracing api. A few notes:

  1. Current syntax requires python 3.5+ (let me know if this is an issue, it shouldn't be too hard to modify for python 2.7)
  2. I have not implemented "shared" spans. The tracer generates spans per Opentracing spec, or what I've seen called "dual span mode" in other libraries. I've heard this is the desired direction for the projects but we could of course add shared spans if desired.

Thanks for checking this out.

Some To-Do's:

  • travis-ci build job (probably need some edits to makefile.. maybe)
  • create pypi account for expediadotcom? for travis-ci to publish the package

Comment thread haystack/propagator.py Outdated

@abstractmethod
def inject(self, span_context, carrier):
pass
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we throw an exception with a custom message? It will make it clear for any person that extends it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

now raising NotImplemented Exception

Comment thread haystack/text_propagator.py Outdated
from .span import SpanContext
from opentracing import SpanContextCorruptedException

TRACE_ID = "Trace-ID"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we keep it in a separate file where all constants throughout the project can be defined?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

refactored to constants.py

Comment thread tests/integration/integration.py Outdated




Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Empty Lines

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

cleaned up, thanks!

@haystack-travis-admin haystack-travis-admin merged commit a838464 into ExpediaDotCom:master Mar 5, 2019
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.

3 participants