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

core-trace: make Backend#end public #623

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

iRevive
Copy link
Contributor

@iRevive iRevive commented Apr 22, 2024

Closes #204.

A few points:

  1. How many people need to implement their own Backend? It's less relevant since we have an sdk-trace module.
  2. Initially, Span had no public end API. The lifecycle has been managed automatically. So the Backend#end was private to prevent a user from ending a span by calling backend.end. Currently, Span has a public end API, so I don't think we should keep Backend#end private too.

@iRevive iRevive requested a review from NthPortal April 22, 2024 06:15
@iRevive iRevive force-pushed the core-trace/backend-public-end branch from 0e07859 to 3a06d12 Compare April 22, 2024 06:20
@iRevive iRevive added the tracing Improvements to tracing module label Apr 22, 2024
@iRevive iRevive merged commit c0057ea into typelevel:main Apr 23, 2024
10 checks passed
@iRevive iRevive deleted the core-trace/backend-public-end branch April 23, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracing Improvements to tracing module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backend Has Private Abstract Methods
2 participants