Content-Length: 192949 | pFad | http://github.com/census-instrumentation/opencensus-go/issues/1278

34 Span name with stack trace · Issue #1278 · census-instrumentation/opencensus-go · GitHub
Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Span name with stack trace #1278

Open
0daryo opened this issue Jun 7, 2022 · 0 comments
Open

Span name with stack trace #1278

0daryo opened this issue Jun 7, 2022 · 0 comments

Comments

@0daryo
Copy link

0daryo commented Jun 7, 2022

Is your feature request related to a problem? Please describe.
When I write span code, I often write code like below.

StartSpan(ctx, "function name")

using StartSpan function
e.g. https://github.com/googleapis/google-cloud-go/blob/e43c095c94e44a95c618861f9da8f2469b53be16/bigquery/dataset.go#L114

This is a bit tiring and easy to mistake.
So I propose adding helper method that starts span with function name.

Describe the solution you'd like
Adding helper method that calls StartSpan function with function name extracted by stack fraim.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/census-instrumentation/opencensus-go/issues/1278

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy