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

Fix grpc port conflict #8

Merged
merged 5 commits into from Jul 11, 2023
Merged

Fix grpc port conflict #8

merged 5 commits into from Jul 11, 2023

Conversation

PietroPasotti
Copy link
Collaborator

promtail tries to use port 9095 for its grpc listen server, but tempo has already snatched it.
This PR sets a different grpc listen port for Tempo.

@PietroPasotti PietroPasotti merged commit 2cdc7f8 into main Jul 11, 2023
@PietroPasotti PietroPasotti deleted the fix-grpc-port-conflict branch July 11, 2023 07:20
@@ -23,7 +23,7 @@
logger = logging.getLogger(__name__)


@trace_charm(tempo_endpoint="_tempo_otlp_grpc_endpoint", service_name="TempoCharm")
@trace_charm(tempo_endpoint="_tempo_otlp_grpc_endpoint")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there anything other than 'charm'? I.e. should it be shortened to just @trace(...)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

didn't see this one until now, but yeah, there's trace_function, trace_type.
Idea is:

@trace_function
def my_custom_fn()...

@trace_type
class MyObj...

@trace_charm(...)
 class MyCharm...
     def foo(self):
          my_custom_fn()  # we'll open a span corresponding with `my_custom_fn` being called
          obj = MyObj()  # each method call on this type will open a span
          obj.bar()

In fact, trace_charm is a specialization of trace_type.
I thought about having a @trace that automagically dispatches to one of the three based on the type (and subclass) of the first argument, but it felt out of scope for now

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.

None yet

4 participants