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

Explore relationships with logging & more general tracing #8

Open
robrix opened this issue Jun 30, 2020 · 0 comments
Open

Explore relationships with logging & more general tracing #8

robrix opened this issue Jun 30, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@robrix
Copy link
Collaborator

robrix commented Jun 30, 2020

@dcreager observed to me the other day that profiling & logging are both instances of tracing. measure has something of this character; we explicitly delimit a block of some significance, which significance is currently defined entirely in terms of the measurements we may take.

But the same deliberately laid-out structure (beyond the actual call stack, which is an implementation detail) is relevant to logging (cf structured logging, observability) as well, for exactly the reason Doug pointed out: it’s a delineation in how you choose to organize your program’s execution.

This suggests decoupling this structure from the Profile effect & instead defining profiling as (approximately) a (structure-enriched) Writer of labelled measurements. Then carriers for a hypothetical logging effect could likewise take advantage of this information.

@robrix robrix added the enhancement New feature or request label Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant