environments_trace_config
Creates, updates, deletes, gets or lists a environments_trace_config
resource.
Overview
Name | environments_trace_config |
Type | Resource |
Id | google.apigee.environments_trace_config |
Fields
Name | Datatype | Description |
---|---|---|
endpoint | string | Required. Endpoint of the exporter. |
exporter | string | Required. 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. |
samplingConfig | object | TraceSamplingConfig 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
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_environments_get_trace_config | SELECT | environmentsId, organizationsId | Get distributed trace configuration in an environment. |
organizations_environments_update_trace_config | UPDATE | environmentsId, organizationsId | 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. |
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 }}';