Przejdź do głównej zawartości
Wersja: 3.0
informacja

You are currently viewing documentation for CompuTec AppEngine 3.0 (.NET 8).

If you are working with older environments, you may need the documentation for CompuTec AppEngine 2.0 based on .NET Framework, which is still supported: https://learn.computec.one/docs/appengine/2.0/.

As CompuTec AppEngine 3.0 introduces a new architecture, all CompuTec components must be updated together to ensure full compatibility.

Please review the CompuTec AppEngine 3.0 documentation before starting your installation or upgrade process.

OpenTelemetry Configuration

OpenTelemetry lets you monitor system behavior and troubleshoot issues in CompuTec AppEngine and SAP Business One.

This guide explains how to connect your environment to a telemetry backend (such as Grafana Cloud) using an OpenTelemetry profile, and how to view logs, traces, and metrics.

Configure OpenTelemetry Profile

To configure OpenTelemetry in OpenTelemetry-compatible backend, for example, Grafana Cloud, follow these steps:

  1. Visit Grafana website and create an account.

  2. After logging in, create a new Stack.

    create stack

  3. Go to My account.

    navigation to servixce accounts in grafana

  4. Click your stack name to manage it.

    add a service account button

  5. Find OpenTelemetry integration and click Configure.

    open telemetry configuration

  6. In Password / API Token, click Generate now.

    generating new token

  7. Name the token, set an expiry (or no expiry), and click Create token.

    creating a token

  8. In CompuTec AppEngine Administration Panel, navigate to System > Telemetry Profiles.

    navigate to telemetry profiles

  9. Create a new profile by clicking the copy icon next to the predefined OpenTelemetry_All profile.

    clone profile

  10. Copy Endpoint for sending OLTP signals from Grafana.com.

    copy endpoints form grafana

  11. Paste it to all Endpoint fields in your new CompuTec AppEngine Open Telemetry profile.

    paste endpoints to appengine

  12. Copy Environmental Variable OTLP Header from Grafana.com.

    copy headers from garfana

  13. Paste it to all Headers in your new CompuTec AppEngine Open Telemetry profile.

    paste headers to appengine

  14. In CompuTec AppEngine Administration Panel, click Save.

    save the profile

  15. Done! Now you can see this profile on the list in CompuTec AppEngine Administration Panel > System > Telemetry Profiles.

Assign OpenTelemetry Profile to CompuTec AppEngine

To assign a profile to the CompuTec AppEngine instance, follow these steps:

  1. Navigate to CompuTec AppEngine Administration Panel > Configuration > AppEngine Servers.

    navigation to appengine servers tab

  2. Clcik the edit icon next to the chosen CompuTec AppEngine instance.

    assigning telemetry profile

  3. Click the OpenTelemetry profile you want to assign.

    assign telemetry profile

  4. Now you can see the OpenTelemetry profile name in the list.

    successfully assigned telemetry profile

  5. Restart the CompuTec AppEngine Service to apply the changes.

Assign the OpenTelemetry Profile to SAP Business One

To assign the OpenTelemetry profile to the Computec AppEngine company, follow these steps:

  1. Go to CompuTec AppEngine Administration Panel > Configuration.

    alt text

  2. Choose the company name from the list to see its details.

    alt text

    note

    You can assign OpenTelemetry Profiles:

    • To all users in the company
    • To specific users needing tailored configurations
  3. To assign the default profile to all users in the company, choose the company name from the list to see its details.

    alt text

  4. Click the edit icon next to Telemetry Profile.

    alt text

  5. Choose the OpenTelemetry profile from the list.

    alt text

  6. Done! Now you can see the Telemetry Profile name assigned to your company.

    alt text

  7. To assign the profile for a specific user, navigate to Telemetry Profiles in your company details.

    alt text

  8. Click Assign profile.

    alt text

  9. Type the user name, click the edit icon to assign the chosen Telemetry Profile, and click Create Assignment.

    alt text

  10. Restart Sap Business One to see the changes.

View the OpenTelemetry Profiles and Logs

  1. In Grafana, click Launch Grafana Cloud.

    alt text

  2. Navigate to Explore.

    alt text

  3. Choose the exploration method from the list:

    • traces: View time-based traces
    • logs: Inspect logs
    • prom: Analyze metrics

    alt text

  4. Done! Now you can explore telemetry.

    grafana explorer

    Service Name - Under the Resource section, locate and input the User Name and Database Id to ensure accurate telemetry tracking.

    • Computec.AppEngine.Host – CompuTec AppEngine Service
    • Computec.Start – SAP Business One Plugin Activity