Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

obs-nebula/desktop-electron

Repository files navigation

desktop-electron

A basic electron application created to call Knative functions.

OTEL-JS packages in use:

Package
@opentelemetry/exporter-trace-otlp-http To export to OTEL collector OTLP/HTTP
@opentelemetry/resources To be used with semantic-conventions to identify the application/service's name
@opentelemetry/sdk-trace-web For automatic instrumentation
@opentelemetry/semantic-conventions To be used with resources to identify the application/service's name
@opentelemetry/instrumentation To register the fetch auto-instrumentation plugin
@opentelemetry/instrumentation-fetch For fetch auto-instrumentation

How to run

  1. Open a terminal

  2. Clone the Function-Five repository:

git clone https://github.com/obs-nebula/function-five.git
  1. Install the func binary https://knative.dev/docs/functions/install-func/

  2. Follow the run instructions https://github.com/obs-nebula/function-five#run

  3. Open other terminal and run this example

git clone https://github.com/obs-nebula/desktop-electron.git
cd desktop-electron
npm install
npm run build
npm start

You will see this majestic desktop layout:

01

When you click on the Start here button you will get the following result:

02

And if you click on Show the result button you will get the result of the last operation done by the Function Five:

03