Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Span name with stack trace #1278

Open
Open
@0daryo

Description

@0daryo

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 frame.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions