Skip to content

Cannot use TraceLayer with GrpcService #973

Closed
@conradludgate

Description

@conradludgate

Bug Report

Version

tonic: 0.7.1
prost: 0.10
tonic-build: 0.7.0
tower: 0.4
tower-http: 0.2.5

Platform

N/A

Crates

tonic/tower-http

Description

tower-http's trace::TraceLayer is incompatible with a tonic client GrpcService. It's Response does not implement Default, but since this change it's now required.

Demo

We use this layer to automatically propagate our opentelemetry contexts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions