33 references to TelemetryEndpoints
Aspire.Dashboard (24)
Telemetry\DashboardTelemetrySender.cs (2)
142
var response = await Client.GetAsync(
TelemetryEndpoints
.TelemetryEnabled).ConfigureAwait(false);
151
var telemetryStartedStatusCode = (await Client.PostAsync(
TelemetryEndpoints
.TelemetryStart, content: null).ConfigureAwait(false)).StatusCode;
Telemetry\DashboardTelemetryService.cs (22)
106
var context = OperationContext.Create(propertyCount: 2, name: GetCompositeEventName(eventName,
TelemetryEndpoints
.TelemetryStartOperation));
116
var response = await PostRequestAsync<StartOperationRequest, StartOperationResponse>(client,
TelemetryEndpoints
.TelemetryStartOperation, new StartOperationRequest(eventName, scopeSettings)).ConfigureAwait(false);
134
var context = OperationContext.Create(propertyCount: 0, name:
TelemetryEndpoints
.TelemetryEndOperation);
137
await client.PostAsJsonAsync(
TelemetryEndpoints
.TelemetryEndOperation, new EndOperationRequest(Id: (string)propertyGetter(operationId), Result: result, ErrorMessage: errorMessage)).ConfigureAwait(false);
152
var context = OperationContext.Create(propertyCount: 2, name: GetCompositeEventName(eventName,
TelemetryEndpoints
.TelemetryStartUserTask));
162
var response = await PostRequestAsync<StartOperationRequest, StartOperationResponse>(client,
TelemetryEndpoints
.TelemetryStartUserTask, new StartOperationRequest(eventName, scopeSettings)).ConfigureAwait(false);
180
var context = OperationContext.Create(propertyCount: 0, name:
TelemetryEndpoints
.TelemetryEndUserTask);
183
await client.PostAsJsonAsync(
TelemetryEndpoints
.TelemetryEndUserTask, new EndOperationRequest(Id: (string)propertyGetter(operationId), Result: result, ErrorMessage: errorMessage)).ConfigureAwait(false);
199
var context = OperationContext.Create(propertyCount: 1, name: GetCompositeEventName(eventName,
TelemetryEndpoints
.TelemetryPostOperation));
209
var response = await PostRequestAsync<PostOperationRequest, TelemetryEventCorrelation>(client,
TelemetryEndpoints
.TelemetryPostOperation, request).ConfigureAwait(false);
227
var context = OperationContext.Create(propertyCount: 1, name: GetCompositeEventName(eventName,
TelemetryEndpoints
.TelemetryPostUserTask));
237
var response = await PostRequestAsync<PostOperationRequest, TelemetryEventCorrelation>(client,
TelemetryEndpoints
.TelemetryPostUserTask, request).ConfigureAwait(false);
255
var context = OperationContext.Create(propertyCount: 1, name: GetCompositeEventName(eventName,
TelemetryEndpoints
.TelemetryPostFault));
265
var response = await PostRequestAsync<PostFaultRequest, TelemetryEventCorrelation>(client,
TelemetryEndpoints
.TelemetryPostFault, request).ConfigureAwait(false);
284
var context = OperationContext.Create(propertyCount: 1, name: GetCompositeEventName(eventName,
TelemetryEndpoints
.TelemetryPostAsset));
294
var response = await PostRequestAsync<PostAssetRequest, TelemetryEventCorrelation>(client,
TelemetryEndpoints
.TelemetryPostAsset, request).ConfigureAwait(false);
311
var context = OperationContext.Create(propertyCount: 0, name:
TelemetryEndpoints
.TelemetryPostProperty);
315
await client.PostAsJsonAsync(
TelemetryEndpoints
.TelemetryPostProperty, request).ConfigureAwait(false);
329
var context = OperationContext.Create(propertyCount: 0, name:
TelemetryEndpoints
.TelemetryPostRecurringProperty);
333
await client.PostAsJsonAsync(
TelemetryEndpoints
.TelemetryPostRecurringProperty, request).ConfigureAwait(false);
347
var context = OperationContext.Create(propertyCount: 0, name:
TelemetryEndpoints
.TelemetryPostCommandLineFlags);
351
await client.PostAsJsonAsync(
TelemetryEndpoints
.TelemetryPostCommandLineFlags, request).ConfigureAwait(false);
Aspire.Dashboard.Tests (9)
Integration\McpServiceTests.cs (1)
291
if (context.Name.Contains(
TelemetryEndpoints
.TelemetryEndOperation))
Telemetry\ComponentTelemetryContextTests.cs (1)
30
Assert.Equal(
TelemetryEndpoints
.TelemetryPostProperty, postPropertyOperation.Name);
Telemetry\DashboardTelemetrySenderTests.cs (2)
78
if (request.RequestUri!.AbsolutePath ==
TelemetryEndpoints
.TelemetryEnabled)
86
else if (request.RequestUri!.AbsolutePath ==
TelemetryEndpoints
.TelemetryStart)
Telemetry\DashboardTelemetryServiceTests.cs (5)
106
if (request.RequestUri!.AbsolutePath ==
TelemetryEndpoints
.TelemetryEnabled)
113
else if (request.RequestUri!.AbsolutePath ==
TelemetryEndpoints
.TelemetryStart)
117
else if (request.RequestUri!.AbsolutePath ==
TelemetryEndpoints
.TelemetryPostProperty)
121
else if (request.RequestUri!.AbsolutePath ==
TelemetryEndpoints
.TelemetryPostUserTask)
128
else if (request.RequestUri!.AbsolutePath ==
TelemetryEndpoints
.TelemetryPostOperation)