Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExporterEventSource fails to export events due to Exceptions in method signatures #753

Closed
1 of 2 tasks
kiwidev opened this issue Nov 4, 2022 · 0 comments · Fixed by #813
Closed
1 of 2 tasks

ExporterEventSource fails to export events due to Exceptions in method signatures #753

kiwidev opened this issue Nov 4, 2022 · 0 comments · Fixed by #813
Assignees
Labels
bug Something isn't working comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva

Comments

@kiwidev
Copy link

kiwidev commented Nov 4, 2022

Issue with OpenTelemetry.Exporter.Geneva

List of all OpenTelemetry NuGet
packages
and version that you are
using (e.g. OpenTelemetry 1.0.2):

  • OpenTelemetry 1.3.1
  • OpenTelemetry.Exporter.Geneva 1.3.0

Runtime version (e.g. net462, net48, netcoreapp3.1, net6.0 etc. You can
find this information from the *.csproj file):

  • net6.0

Is this a feature request or a bug?

  • Feature Request
  • Bug

What is the expected behavior?

Exceptions thrown during processing of the Geneva exporter should be written to OpenTelemetry-Exporter-Geneva eventsource by the ExporterEventSource.

What is the actual behavior?

When listening to the EventSource using an EventListener the following exception is returned:

Unsupported type Exception in event source.
   at System.Diagnostics.Tracing.ManifestBuilder.ManifestError(String msg, Boolean runtimeCritical)
   at System.Diagnostics.Tracing.ManifestBuilder.GetTypeName(Type type)
   at System.Diagnostics.Tracing.ManifestBuilder.AddEventParameter(Type type, String name)
   at System.Diagnostics.Tracing.EventSource.CreateManifestAndDescriptors(Type eventSourceType, String eventSourceDllName, EventSource source, EventManifestOptions flags)
   at System.Diagnostics.Tracing.EventSource.EnsureDescriptorsInitialized()
   at System.Diagnostics.Tracing.EventSource.DoCommand(EventCommandEventArgs commandArgs)
EventName: EventSourceMessage
EventSource: {EventSource(OpenTelemetry-Exporter-Geneva, 18a10fdb-4e96-51fd-b6ff-1b3aeaf4a2c4)}
Message: ERROR: Exception in Command Processing for EventSource OpenTelemetry-Exporter-Geneva: Unsupported type Exception in event source.

According to https://learn.microsoft.com/en-us/dotnet/core/diagnostics/eventsource-instrumentation#supported-parameter-types, Exception is not a valid parameter type for EventSource methods.

Additional Context

Add any other context about the feature request here.

@kiwidev kiwidev added the comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva label Nov 4, 2022
@cijothomas cijothomas added the bug Something isn't working label Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants