mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-30 13:51:48 +02:00
* Update aspire to 13.1 (examples + code) Allows usage of aspire CLI which is very useful for dev in codespaces (for my next PR). * Add OTEL support * Initial PR feedback * PR feedback * PR feedback * PR feedback * Cleanup. * Cleanup * Fix * Fix * Rename stuff around to be more accurate * PR feedback * Update WireMock.Net.OpenTelemetry.csproj Update <Authors> * PR feedback parser * PR feedback package versions * Status code feedback. * Update preprocessor directives to to Activity Tracing instead of OpenTelemetry. Is more descriptive. * Add tests * Improve tests --------- Co-authored-by: Stef Heyenrath <Stef.Heyenrath@gmail.com>
35 lines
1.3 KiB
C#
35 lines
1.3 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WireMock.Owin.ActivityTracing;
|
|
|
|
/// <summary>
|
|
/// Semantic convention constants for WireMock.Net tracing attributes.
|
|
/// </summary>
|
|
internal static class WireMockSemanticConventions
|
|
{
|
|
// Standard HTTP semantic conventions (OpenTelemetry)
|
|
public const string HttpMethod = "http.request.method";
|
|
public const string HttpUrl = "url.full";
|
|
public const string HttpPath = "url.path";
|
|
public const string HttpHost = "server.address";
|
|
public const string HttpStatusCode = "http.response.status_code";
|
|
public const string ClientAddress = "client.address";
|
|
|
|
// WireMock-specific attributes
|
|
public const string MappingMatched = "wiremock.mapping.matched";
|
|
public const string MappingGuid = "wiremock.mapping.guid";
|
|
public const string MappingTitle = "wiremock.mapping.title";
|
|
public const string MatchScore = "wiremock.match.score";
|
|
public const string PartialMappingGuid = "wiremock.partial_mapping.guid";
|
|
public const string PartialMappingTitle = "wiremock.partial_mapping.title";
|
|
public const string RequestGuid = "wiremock.request.guid";
|
|
public const string RequestBody = "wiremock.request.body";
|
|
public const string ResponseBody = "wiremock.response.body";
|
|
}
|