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

API calls for all endpoints tagged Projects.

Link to this section Summary

Functions

Sends new spans to new or existing traces. You cannot update existing spans. In this case, writing traces is not considered an active developer method since traces are machine generated.

Creates a new span. In this case, writing traces is not considered an active developer method since traces are machine generated.

Link to this section Functions

Link to this function

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

View Source
cloudtrace_projects_traces_batch_write(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.CloudTrace.V2.Model.Empty.t()}
  | {:ok, Tesla.Env.t()}
  | {:error, any()}

Sends new spans to new or existing traces. You cannot update existing spans. In this case, writing traces is not considered an active developer method since traces are machine generated.

Parameters

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

    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: 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 (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :body (type: GoogleApi.CloudTrace.V2.Model.BatchWriteSpansRequest.t) -
  • opts (type: keyword()) - Call options

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
cloudtrace_projects_traces_spans_create_span(
  Tesla.Env.client(),
  String.t(),
  String.t(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.CloudTrace.V2.Model.Span.t()}
  | {:ok, Tesla.Env.t()}
  | {:error, any()}

Creates a new span. In this case, writing traces is not considered an active developer method since traces are machine generated.

Parameters

  • connection (type: GoogleApi.CloudTrace.V2.Connection.t) - Connection to server

  • projects_id (type: 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 (type: String.t) - Part of name. See documentation of projectsId.

  • spans_id (type: String.t) - Part of name. See documentation of projectsId.

  • optional_params (type: keyword()) - Optional parameters

    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: 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 (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :body (type: GoogleApi.CloudTrace.V2.Model.Span.t) -
  • opts (type: keyword()) - Call options

Returns

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