Skip to main content

environments_trace_config

Creates, updates, deletes, gets or lists a environments_trace_config resource.

Overview

Nameenvironments_trace_config
TypeResource
Idgoogle.apigee.environments_trace_config

Fields

NameDatatypeDescription
endpointstringRequired. Endpoint of the exporter.
exporterstringRequired. Exporter that is used to view the distributed trace captured using OpenCensus. An exporter sends traces to any backend that is capable of consuming them. Recorded spans can be exported by registered exporters.
samplingConfigobjectTraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs.

Methods

NameAccessible byRequired ParamsDescription
organizations_environments_get_trace_configSELECTenvironmentsId, organizationsIdGet distributed trace configuration in an environment.
organizations_environments_update_trace_configUPDATEenvironmentsId, organizationsIdUpdates the trace configurations in an environment. Note that the repeated fields have replace semantics when included in the field mask and that they will be overwritten by the value of the fields in the request body.

SELECT examples

Get distributed trace configuration in an environment.

SELECT
endpoint,
exporter,
samplingConfig
FROM google.apigee.environments_trace_config
WHERE environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}';

UPDATE example

Updates a environments_trace_config resource.

/*+ update */
UPDATE google.apigee.environments_trace_config
SET
exporter = '{{ exporter }}',
endpoint = '{{ endpoint }}',
samplingConfig = '{{ samplingConfig }}'
WHERE
environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}';