Skip to content

Commit

Permalink
cli: Cloud traces support via dagger login (#7125)
Browse files Browse the repository at this point in the history
* cli: Cloud traces support via `dagger login`

Signed-off-by: Andrea Luzzardi <al@dagger.io>

* dagger login: store entire org object

Signed-off-by: Andrea Luzzardi <al@dagger.io>

* fix os.Stderr and os.Exit usage circumventing TUI

Signed-off-by: Alex Suraci <alex@dagger.io>

* dont use os.Stderr for debug handlers

Signed-off-by: Alex Suraci <alex@dagger.io>

* run: propagate exit code silently

Signed-off-by: Alex Suraci <alex@dagger.io>

* make otel logs look slightly less cryptic

Signed-off-by: Alex Suraci <alex@dagger.io>

* dagger login: store refreshed token on disk

Signed-off-by: Andrea Luzzardi <al@dagger.io>

* test: fix telemetry mock service

Signed-off-by: Andrea Luzzardi <al@dagger.io>

---------

Signed-off-by: Andrea Luzzardi <al@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Co-authored-by: Alex Suraci <alex@dagger.io>
  • Loading branch information
aluzzardi and vito authored May 17, 2024
1 parent 87b53c6 commit 0159870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telemetry/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func Init(ctx context.Context, cfg Config) context.Context {

// Log to slog.
otel.SetErrorHandler(otel.ErrorHandlerFunc(func(err error) {
slog.Error("OpenTelemetry error", "error", err)
slog.Error("failed to emit telemetry", "error", err)
}))

if cfg.Detect {
Expand Down

0 comments on commit 0159870

Please sign in to comment.