Skip to content

otel: capture whether process was invoked from a terminal#4978

Merged
neersighted merged 1 commit intodocker:masterfrom
laurazard:otel-add-tty
Apr 4, 2024
Merged

otel: capture whether process was invoked from a terminal#4978
neersighted merged 1 commit intodocker:masterfrom
laurazard:otel-add-tty

Conversation

@laurazard
Copy link
Copy Markdown
Member

- What I did

Added a "terminal" attribute to BaseMetricAttributes that allows us to discern whether an invocation was from an interactive terminal or not.

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

image

@laurazard laurazard requested review from Benehiko and krissetto April 2, 2024 10:18
@laurazard laurazard self-assigned this Apr 2, 2024
Comment thread cli/command/telemetry.go Outdated
Comment thread cli/command/telemetry.go Outdated
Comment thread cli/command/telemetry_utils.go Outdated
Comment thread cli/command/telemetry_utils.go Outdated
@laurazard laurazard requested review from jsternberg and milas April 2, 2024 14:25
Comment thread cli/command/telemetry.go Outdated
Comment thread cli/command/telemetry_utils.go Outdated
Comment thread cli/command/telemetry_utils.go Outdated
Comment thread cli/command/telemetry.go Outdated
Comment thread cli/command/telemetry_utils.go
Copy link
Copy Markdown
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread cli/command/telemetry.go Outdated
@laurazard laurazard force-pushed the otel-add-tty branch 3 times, most recently from 0cf08e0 to eab0d85 Compare April 4, 2024 02:24
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 4, 2024

Codecov Report

Merging #4978 (ee1b283) into master (155dc5e) will increase coverage by 0.05%.
Report is 3 commits behind head on master.
The diff coverage is 35.29%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4978      +/-   ##
==========================================
+ Coverage   60.99%   61.05%   +0.05%     
==========================================
  Files         295      295              
  Lines       20621    20645      +24     
==========================================
+ Hits        12578    12605      +27     
+ Misses       7149     7144       -5     
- Partials      894      896       +2     

This commit adds a "terminal" attribute to `BaseMetricAttributes`
that allows us to discern whether an invocation was from an interactive
terminal or not.

Signed-off-by: Laura Brehm <[email protected]>
Copy link
Copy Markdown
Member

@Benehiko Benehiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neersighted neersighted merged commit 10b9810 into docker:master Apr 4, 2024
@neersighted neersighted deleted the otel-add-tty branch April 4, 2024 12:11
@thaJeztah thaJeztah added this to the 26.1.0 milestone Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants