Skip to main content

environments_trace_config

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

Overview

Nameenvironments_trace_config
TypeResource
Idgoogle.apigee.environments_trace_config

Fields

The following fields are returned by SELECT queries:

Successful response

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.
samplingConfigobjectDistributed trace configuration for all API proxies in an environment. You can also override the configuration for a specific API proxy using the distributed trace configuration overrides API. (id: GoogleCloudApigeeV1TraceSamplingConfig)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_environments_get_trace_configselectorganizationsId, environmentsIdGet distributed trace configuration in an environment.
organizations_environments_update_trace_configupdateorganizationsId, environmentsIdupdateMaskUpdates 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environmentsIdstring
organizationsIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Get distributed trace configuration in an environment.

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

UPDATE examples

Updates 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.

UPDATE google.apigee.environments_trace_config
SET
data__exporter = '{{ exporter }}',
data__endpoint = '{{ endpoint }}',
data__samplingConfig = '{{ samplingConfig }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND environmentsId = '{{ environmentsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
endpoint,
exporter,
samplingConfig;