google_api_cloud_trace v0.7.0 GoogleApi.CloudTrace.V2.Api.Projects View Source

API calls for all endpoints tagged Projects.

Link to this section Summary

Link to this section Functions

Link to this function

cloudtrace_projects_traces_batch_write(connection, projects_id, optional_params \\ [], opts \\ []) View Source

Sends new spans to new or existing traces. You cannot update existing spans.

Parameters

  • connection (GoogleApi.CloudTrace.V2.Connection): Connection to server
  • projects_id (String.t): Part of `name`. Required. The name of the project where the spans belong. The format is `projects/[PROJECT_ID]`.
  • optional_params (KeywordList): [optional] Optional parameters

    • :$.xgafv (String.t): V1 error format.
    • :access_token (String.t): OAuth access token.
    • :alt (String.t): Data format for response.
    • :callback (String.t): JSONP
    • :fields (String.t): Selector specifying which fields to include in a partial response.
    • :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (String.t): OAuth 2.0 token for the current user.
    • :prettyPrint (boolean()): Returns response with indentations and line breaks.
    • :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
    • :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
    • :body (BatchWriteSpansRequest):

Returns

{:ok, %GoogleApi.CloudTrace.V2.Model.Empty{}} on success {:error, info} on failure

Link to this function

cloudtrace_projects_traces_spans_create_span(connection, projects_id, traces_id, spans_id, optional_params \\ [], opts \\ []) View Source

Creates a new span.

Parameters

  • connection (GoogleApi.CloudTrace.V2.Connection): Connection to server
  • projects_id (String.t): Part of `name`. The resource name of the span in the following format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.
  • traces_id (String.t): Part of `name`. See documentation of `projectsId`.
  • spans_id (String.t): Part of `name`. See documentation of `projectsId`.
  • optional_params (KeywordList): [optional] Optional parameters

    • :$.xgafv (String.t): V1 error format.
    • :access_token (String.t): OAuth access token.
    • :alt (String.t): Data format for response.
    • :callback (String.t): JSONP
    • :fields (String.t): Selector specifying which fields to include in a partial response.
    • :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (String.t): OAuth 2.0 token for the current user.
    • :prettyPrint (boolean()): Returns response with indentations and line breaks.
    • :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
    • :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
    • :body (Span):

Returns

{:ok, %GoogleApi.CloudTrace.V2.Model.Span{}} on success {:error, info} on failure