Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ option java_outer_classname = "TraceProto";
option java_package = "com.google.devtools.cloudtrace.v1";
option php_namespace = "Google\\Cloud\\Trace\\V1";


// This file describes an API for collecting and viewing traces and spans
// within a trace. A Trace is a collection of spans corresponding to a single
// operation or set of operations for an application. A span is an individual
Expand All @@ -36,12 +35,16 @@ option php_namespace = "Google\\Cloud\\Trace\\V1";
service TraceService {
// Returns of a list of traces that match the specified filter conditions.
rpc ListTraces(ListTracesRequest) returns (ListTracesResponse) {
option (google.api.http) = { get: "/v1/projects/{project_id}/traces" };
option (google.api.http) = {
get: "/v1/projects/{project_id}/traces"
};
}

// Gets a single trace by its ID.
rpc GetTrace(GetTraceRequest) returns (Trace) {
option (google.api.http) = { get: "/v1/projects/{project_id}/traces/{trace_id}" };
option (google.api.http) = {
get: "/v1/projects/{project_id}/traces/{trace_id}"
};
}

// Sends new traces to Stackdriver Trace or updates existing traces. If the ID
Expand All @@ -50,7 +53,10 @@ service TraceService {
// and any new fields provided are merged with the existing trace data. If the
// ID does not match, a new trace is created.
rpc PatchTraces(PatchTracesRequest) returns (google.protobuf.Empty) {
option (google.api.http) = { patch: "/v1/projects/{project_id}/traces" body: "traces" };
option (google.api.http) = {
patch: "/v1/projects/{project_id}/traces"
body: "traces"
};
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ option java_outer_classname = "TraceProto";
option java_package = "com.google.devtools.cloudtrace.v2";
option php_namespace = "Google\\Cloud\\Trace\\V2";


// A span represents a single operation within a trace. Spans can be
// nested to form a trace tree. Often, a trace contains a root span
// that describes the end-to-end latency, and one or more subspans for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ option java_outer_classname = "TracingProto";
option java_package = "com.google.devtools.cloudtrace.v2";
option php_namespace = "Google\\Cloud\\Trace\\V2";


// This file describes an API for collecting and viewing traces and spans
// within a trace. A Trace is a collection of spans corresponding to a single
// operation or set of operations for an application. A span is an individual
Expand All @@ -38,12 +37,18 @@ service TraceService {
// Sends new spans to new or existing traces. You cannot update
// existing spans.
rpc BatchWriteSpans(BatchWriteSpansRequest) returns (google.protobuf.Empty) {
option (google.api.http) = { post: "/v2/{name=projects/*}/traces:batchWrite" body: "*" };
option (google.api.http) = {
post: "/v2/{name=projects/*}/traces:batchWrite"
body: "*"
};
}

// Creates a new span.
rpc CreateSpan(Span) returns (Span) {
option (google.api.http) = { post: "/v2/{name=projects/*/traces/*}/spans" body: "*" };
option (google.api.http) = {
post: "/v2/{name=projects/*/traces/*}/spans"
body: "*"
};
}
}

Expand Down
10 changes: 5 additions & 5 deletions google-cloud-clients/google-cloud-trace/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-01-17T08:52:44.387918Z",
"updateTime": "2019-02-26T08:54:00.680348Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.16.6",
"dockerImage": "googleapis/artman@sha256:12722f2ca3fbc3b53cc6aa5f0e569d7d221b46bd876a2136497089dec5e3634e"
"version": "0.16.14",
"dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "0ac60e21a1aa86c07c1836865b35308ba8178b05",
"internalRef": "229626798"
"sha": "29f098cb03a9983cc9cb15993de5da64419046f2",
"internalRef": "235621085"
}
}
],
Expand Down