Skip to content

Use serviceContext when starting #887

@asimpson

Description

@asimpson

err := w.service.StartAsync(context.Background())

Using context.Background() creates an empty context when starting which can cause non-obvious behavior. For example, if your service is using logging.FromContext(ctx) this will result in issues like: no logger was found in the context, so using NopLogger. Ideally dskit should use the passed in serviceContext here instead of making a new context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions