1. Packages
  2. Dynatrace
  3. API Docs
  4. SpanContextPropagation
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.SpanContextPropagation

Explore with Pulumi AI

Create SpanContextPropagation Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SpanContextPropagation(name: string, args: SpanContextPropagationArgs, opts?: CustomResourceOptions);
@overload
def SpanContextPropagation(resource_name: str,
                           args: SpanContextPropagationArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def SpanContextPropagation(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           action: Optional[str] = None,
                           matches: Optional[SpanContextPropagationMatchesArgs] = None,
                           insert_after: Optional[str] = None,
                           name: Optional[str] = None)
func NewSpanContextPropagation(ctx *Context, name string, args SpanContextPropagationArgs, opts ...ResourceOption) (*SpanContextPropagation, error)
public SpanContextPropagation(string name, SpanContextPropagationArgs args, CustomResourceOptions? opts = null)
public SpanContextPropagation(String name, SpanContextPropagationArgs args)
public SpanContextPropagation(String name, SpanContextPropagationArgs args, CustomResourceOptions options)
type: dynatrace:SpanContextPropagation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SpanContextPropagationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SpanContextPropagationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SpanContextPropagationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SpanContextPropagationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SpanContextPropagationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var spanContextPropagationResource = new Dynatrace.SpanContextPropagation("spanContextPropagationResource", new()
{
    Action = "string",
    Matches = new Dynatrace.Inputs.SpanContextPropagationMatchesArgs
    {
        Matches = new[]
        {
            new Dynatrace.Inputs.SpanContextPropagationMatchesMatchArgs
            {
                Comparison = "string",
                Source = "string",
                CaseSensitive = false,
                Key = "string",
                Value = "string",
            },
        },
    },
    InsertAfter = "string",
    Name = "string",
});
Copy
example, err := dynatrace.NewSpanContextPropagation(ctx, "spanContextPropagationResource", &dynatrace.SpanContextPropagationArgs{
	Action: pulumi.String("string"),
	Matches: &dynatrace.SpanContextPropagationMatchesArgs{
		Matches: dynatrace.SpanContextPropagationMatchesMatchArray{
			&dynatrace.SpanContextPropagationMatchesMatchArgs{
				Comparison:    pulumi.String("string"),
				Source:        pulumi.String("string"),
				CaseSensitive: pulumi.Bool(false),
				Key:           pulumi.String("string"),
				Value:         pulumi.String("string"),
			},
		},
	},
	InsertAfter: pulumi.String("string"),
	Name:        pulumi.String("string"),
})
Copy
var spanContextPropagationResource = new SpanContextPropagation("spanContextPropagationResource", SpanContextPropagationArgs.builder()
    .action("string")
    .matches(SpanContextPropagationMatchesArgs.builder()
        .matches(SpanContextPropagationMatchesMatchArgs.builder()
            .comparison("string")
            .source("string")
            .caseSensitive(false)
            .key("string")
            .value("string")
            .build())
        .build())
    .insertAfter("string")
    .name("string")
    .build());
Copy
span_context_propagation_resource = dynatrace.SpanContextPropagation("spanContextPropagationResource",
    action="string",
    matches={
        "matches": [{
            "comparison": "string",
            "source": "string",
            "case_sensitive": False,
            "key": "string",
            "value": "string",
        }],
    },
    insert_after="string",
    name="string")
Copy
const spanContextPropagationResource = new dynatrace.SpanContextPropagation("spanContextPropagationResource", {
    action: "string",
    matches: {
        matches: [{
            comparison: "string",
            source: "string",
            caseSensitive: false,
            key: "string",
            value: "string",
        }],
    },
    insertAfter: "string",
    name: "string",
});
Copy
type: dynatrace:SpanContextPropagation
properties:
    action: string
    insertAfter: string
    matches:
        matches:
            - caseSensitive: false
              comparison: string
              key: string
              source: string
              value: string
    name: string
Copy

SpanContextPropagation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SpanContextPropagation resource accepts the following input properties:

Action This property is required. string
Whether to create an entry point or not
Matches This property is required. Pulumiverse.Dynatrace.Inputs.SpanContextPropagationMatches
Matching strategies for the Span
InsertAfter string
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
Name string
The name of the rule
Action This property is required. string
Whether to create an entry point or not
Matches This property is required. SpanContextPropagationMatchesArgs
Matching strategies for the Span
InsertAfter string
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
Name string
The name of the rule
action This property is required. String
Whether to create an entry point or not
matches This property is required. SpanContextPropagationMatches
Matching strategies for the Span
insertAfter String
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
name String
The name of the rule
action This property is required. string
Whether to create an entry point or not
matches This property is required. SpanContextPropagationMatches
Matching strategies for the Span
insertAfter string
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
name string
The name of the rule
action This property is required. str
Whether to create an entry point or not
matches This property is required. SpanContextPropagationMatchesArgs
Matching strategies for the Span
insert_after str
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
name str
The name of the rule
action This property is required. String
Whether to create an entry point or not
matches This property is required. Property Map
Matching strategies for the Span
insertAfter String
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
name String
The name of the rule

Outputs

All input properties are implicitly available as output properties. Additionally, the SpanContextPropagation resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SpanContextPropagation Resource

Get an existing SpanContextPropagation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SpanContextPropagationState, opts?: CustomResourceOptions): SpanContextPropagation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        insert_after: Optional[str] = None,
        matches: Optional[SpanContextPropagationMatchesArgs] = None,
        name: Optional[str] = None) -> SpanContextPropagation
func GetSpanContextPropagation(ctx *Context, name string, id IDInput, state *SpanContextPropagationState, opts ...ResourceOption) (*SpanContextPropagation, error)
public static SpanContextPropagation Get(string name, Input<string> id, SpanContextPropagationState? state, CustomResourceOptions? opts = null)
public static SpanContextPropagation get(String name, Output<String> id, SpanContextPropagationState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:SpanContextPropagation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Action string
Whether to create an entry point or not
InsertAfter string
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
Matches Pulumiverse.Dynatrace.Inputs.SpanContextPropagationMatches
Matching strategies for the Span
Name string
The name of the rule
Action string
Whether to create an entry point or not
InsertAfter string
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
Matches SpanContextPropagationMatchesArgs
Matching strategies for the Span
Name string
The name of the rule
action String
Whether to create an entry point or not
insertAfter String
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
matches SpanContextPropagationMatches
Matching strategies for the Span
name String
The name of the rule
action string
Whether to create an entry point or not
insertAfter string
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
matches SpanContextPropagationMatches
Matching strategies for the Span
name string
The name of the rule
action str
Whether to create an entry point or not
insert_after str
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
matches SpanContextPropagationMatchesArgs
Matching strategies for the Span
name str
The name of the rule
action String
Whether to create an entry point or not
insertAfter String
Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
matches Property Map
Matching strategies for the Span
name String
The name of the rule

Supporting Types

SpanContextPropagationMatches
, SpanContextPropagationMatchesArgs

Matches This property is required. List<Pulumiverse.Dynatrace.Inputs.SpanContextPropagationMatchesMatch>
Matching strategies for the Span
Matches This property is required. []SpanContextPropagationMatchesMatch
Matching strategies for the Span
matches This property is required. List<SpanContextPropagationMatchesMatch>
Matching strategies for the Span
matches This property is required. SpanContextPropagationMatchesMatch[]
Matching strategies for the Span
matches This property is required. Sequence[SpanContextPropagationMatchesMatch]
Matching strategies for the Span
matches This property is required. List<Property Map>
Matching strategies for the Span

SpanContextPropagationMatchesMatch
, SpanContextPropagationMatchesMatchArgs

Comparison This property is required. string
Possible values are EQUALS, CONTAINS, STARTS_WITH, ENDS_WITH, DOES_NOT_EQUAL, DOES_NOT_CONTAIN, DOES_NOT_START_WITH and DOES_NOT_END_WITH.
Source This property is required. string
What to match against. Possible values are SPAN_NAME, SPAN_KIND, ATTRIBUTE, INSTRUMENTATION_LIBRARY_NAME and INSTRUMENTATION_LIBRARY_VERSION
CaseSensitive bool
Whether to match strings case sensitively or not
Key string
The name of the attribute if source is ATTRIBUTE
Value string
The value to compare against. When source is SPAN_KIND the only allowed values are INTERNAL, SERVER, CLIENT, PRODUCER and CONSUMER
Comparison This property is required. string
Possible values are EQUALS, CONTAINS, STARTS_WITH, ENDS_WITH, DOES_NOT_EQUAL, DOES_NOT_CONTAIN, DOES_NOT_START_WITH and DOES_NOT_END_WITH.
Source This property is required. string
What to match against. Possible values are SPAN_NAME, SPAN_KIND, ATTRIBUTE, INSTRUMENTATION_LIBRARY_NAME and INSTRUMENTATION_LIBRARY_VERSION
CaseSensitive bool
Whether to match strings case sensitively or not
Key string
The name of the attribute if source is ATTRIBUTE
Value string
The value to compare against. When source is SPAN_KIND the only allowed values are INTERNAL, SERVER, CLIENT, PRODUCER and CONSUMER
comparison This property is required. String
Possible values are EQUALS, CONTAINS, STARTS_WITH, ENDS_WITH, DOES_NOT_EQUAL, DOES_NOT_CONTAIN, DOES_NOT_START_WITH and DOES_NOT_END_WITH.
source This property is required. String
What to match against. Possible values are SPAN_NAME, SPAN_KIND, ATTRIBUTE, INSTRUMENTATION_LIBRARY_NAME and INSTRUMENTATION_LIBRARY_VERSION
caseSensitive Boolean
Whether to match strings case sensitively or not
key String
The name of the attribute if source is ATTRIBUTE
value String
The value to compare against. When source is SPAN_KIND the only allowed values are INTERNAL, SERVER, CLIENT, PRODUCER and CONSUMER
comparison This property is required. string
Possible values are EQUALS, CONTAINS, STARTS_WITH, ENDS_WITH, DOES_NOT_EQUAL, DOES_NOT_CONTAIN, DOES_NOT_START_WITH and DOES_NOT_END_WITH.
source This property is required. string
What to match against. Possible values are SPAN_NAME, SPAN_KIND, ATTRIBUTE, INSTRUMENTATION_LIBRARY_NAME and INSTRUMENTATION_LIBRARY_VERSION
caseSensitive boolean
Whether to match strings case sensitively or not
key string
The name of the attribute if source is ATTRIBUTE
value string
The value to compare against. When source is SPAN_KIND the only allowed values are INTERNAL, SERVER, CLIENT, PRODUCER and CONSUMER
comparison This property is required. str
Possible values are EQUALS, CONTAINS, STARTS_WITH, ENDS_WITH, DOES_NOT_EQUAL, DOES_NOT_CONTAIN, DOES_NOT_START_WITH and DOES_NOT_END_WITH.
source This property is required. str
What to match against. Possible values are SPAN_NAME, SPAN_KIND, ATTRIBUTE, INSTRUMENTATION_LIBRARY_NAME and INSTRUMENTATION_LIBRARY_VERSION
case_sensitive bool
Whether to match strings case sensitively or not
key str
The name of the attribute if source is ATTRIBUTE
value str
The value to compare against. When source is SPAN_KIND the only allowed values are INTERNAL, SERVER, CLIENT, PRODUCER and CONSUMER
comparison This property is required. String
Possible values are EQUALS, CONTAINS, STARTS_WITH, ENDS_WITH, DOES_NOT_EQUAL, DOES_NOT_CONTAIN, DOES_NOT_START_WITH and DOES_NOT_END_WITH.
source This property is required. String
What to match against. Possible values are SPAN_NAME, SPAN_KIND, ATTRIBUTE, INSTRUMENTATION_LIBRARY_NAME and INSTRUMENTATION_LIBRARY_VERSION
caseSensitive Boolean
Whether to match strings case sensitively or not
key String
The name of the attribute if source is ATTRIBUTE
value String
The value to compare against. When source is SPAN_KIND the only allowed values are INTERNAL, SERVER, CLIENT, PRODUCER and CONSUMER

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.