Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

laurazard
Copy link
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 self-assigned this Apr 2, 2024
cli/command/telemetry.go Outdated Show resolved Hide resolved
cli/command/telemetry.go Outdated Show resolved Hide resolved
cli/command/telemetry.go Outdated Show resolved Hide resolved
cli/command/telemetry_utils.go Outdated Show resolved Hide resolved
cli/command/telemetry_utils.go Outdated Show resolved Hide resolved
cli/command/telemetry.go Outdated Show resolved Hide resolved
cli/command/telemetry_utils.go Show resolved Hide resolved
Copy link

@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

cli/command/telemetry.go Outdated Show resolved Hide resolved
@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

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
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
88 checks passed
@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