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

Instrument app-lib for OpenTelemetry #593

Closed
HauklandJ opened this issue Apr 15, 2024 · 0 comments
Closed

Instrument app-lib for OpenTelemetry #593

HauklandJ opened this issue Apr 15, 2024 · 0 comments
Assignees
Labels
feature Label Pull requests with new features. Used when generation releasenotes kind/feature-request New feature or request

Comments

@HauklandJ
Copy link
Contributor

HauklandJ commented Apr 15, 2024

Description

Part of the Monitoring epic.

Now that Open Telemetry has been wired up, some automatic instrumentation is handled by the OpenTelemetry SDK and the instrumentation libraries.
It is time to add Manual Intrumentation to app-lib to make sense of the produced observability elements. This includes creating custom spans and metrics.

Custom spans can be created using the OpenTelemetry API:

using var tracer = TracerProvider.Default.GetTracer("YourTracerName");

using var span = tracer.StartActiveSpan("OperationName");
try
{
    // Your operation code
}
catch (Exception ex)
{
    span.RecordException(ex);
    throw;
}
finally
{
    span.End();
}

NOTE: Deciding on what to instrument is a part of this issue.

Additional Information

No response

@HauklandJ HauklandJ added kind/feature-request New feature or request feature Label Pull requests with new features. Used when generation releasenotes labels Apr 15, 2024
@HauklandJ HauklandJ moved this to 📈 Todo in Team Apps Apr 15, 2024
@martinothamar martinothamar self-assigned this Apr 19, 2024
@HauklandJ HauklandJ moved this from 📈 Todo to 👷 In Progress in Team Apps Apr 22, 2024
@HauklandJ HauklandJ self-assigned this Apr 22, 2024
@olavflar olavflar moved this from 👷 In Progress to 🔎 Review in Team Apps May 22, 2024
@martinothamar martinothamar moved this from 🔎 Review to 🧪 Test in Team Apps May 23, 2024
@HanneLauritsen1967 HanneLauritsen1967 moved this from 🧪 Test to ✅ Done in Team Apps May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Label Pull requests with new features. Used when generation releasenotes kind/feature-request New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants