Method: projects.traceSinks.create

Creates a sink that exports trace spans to a destination. The export of newly-ingested traces begins immediately, unless the sink's writerIdentity is not permitted to write to the destination. A sink can export traces only from the resource owning the sink (the 'parent').

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The resource in which to create the sink (currently only project sinks are supported):


Examples: "projects/my-trace-project", "projects/123456789".

Authorization requires the following IAM permission on the specified resource parent:

  • cloudtrace.tracesinks.create

Request body

The request body contains an instance of TraceSink.

Response body

If successful, the response body contains a newly created instance of TraceSink.

Authorization scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.