Skip to content

Getting Started Docs - snippet error #644

@simonlsk

Description

@simonlsk

In the Creating metric instruments section the snippet includes the line:

meter := otel.Meter("ex.com/basic")

For which I get an unresolved reference. I believe the function Meter is in global and the correct line should be:

meter := global.Meter("ex.com/basic")

That waisted me about an hour trying to figure out what I was doing wrong.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions