Please take the OpenCensus user survey

TagKey

TagKey

The key to filter or group metrics.

Restrictions

Example

import "go.opencensus.io/tag"

keyMethod, _ := tag.NewKey("method")
import opencensus.tags import tag_key

keyMethod = tag_key.TagKey("method")
import io.opencensus.tags.Tags;

private static final TagKey KEY_METHOD = TagKey.create("method");
#include "opencensus/tags/tag_key.h"

static const opencensus::tags::TagKey key_method =
                    opencensus::tags::TagKey::Register("method");
const keyMethod = "method";

References

Resource URL
Specs definition specs/TagContext.TagKey
Go TagKey API TagKey
Java TagKey API TagKey JavaDoc
Python TagKey reference Github implementation
C++ Tags reference Tags source