Skip to content
Snippets Groups Projects
  • Jamie Tanna's avatar
    9374d156
    refactor(telemetry): pre-wrap commands in Spans · 9374d156
    Jamie Tanna authored
    To make sure that we always set up the Span, in an automagically managed
    process that always occurs before any processing, we should make the
    `StartSpanForCommand` call execute in the `PersistentPreRunE` and
    `PersistentPostRunE`.
    
    This also makes `StartSpanForCommand` update the `context.Context` in
    the function itself, so we're always using the correct child
    `context.Context`.
    9374d156
    History
    refactor(telemetry): pre-wrap commands in Spans
    Jamie Tanna authored
    To make sure that we always set up the Span, in an automagically managed
    process that always occurs before any processing, we should make the
    `StartSpanForCommand` call execute in the `PersistentPreRunE` and
    `PersistentPostRunE`.
    
    This also makes `StartSpanForCommand` update the `context.Context` in
    the function itself, so we're always using the correct child
    `context.Context`.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.