LogError logs err with logger.Errorf if err is non-nil.
SetLogger initializes the logging middleware.
StartSpan starts an externalGRPCSpanType span under the transaction in ctx, returns the created span and the context with the traceparent header matadata.