MCPcopy Index your code
hub / github.com/docker/cli / stdioAttributes

Function stdioAttributes

cli/command/telemetry_utils.go:105–111  ·  view source on GitHub ↗
(streams Streams)

Source from the content-addressed store, hash-verified

103}
104
105func stdioAttributes(streams Streams) []attribute.KeyValue {
106 return []attribute.KeyValue{
107 attribute.Bool("command.stdin.isatty", streams.In().IsTerminal()),
108 attribute.Bool("command.stdout.isatty", streams.Out().IsTerminal()),
109 attribute.Bool("command.stderr.isatty", streams.Err().IsTerminal()),
110 }
111}
112
113func attributesFromError(err error) []attribute.KeyValue {
114 attrs := []attribute.KeyValue{}

Callers 2

TestStdioAttributesFunction · 0.85
BaseCommandAttributesFunction · 0.85

Calls 4

InMethod · 0.65
OutMethod · 0.65
ErrMethod · 0.65
IsTerminalMethod · 0.45

Tested by 1

TestStdioAttributesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…