generated from danstis/gotemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add app insights monitoring #151
Merged
Merged
Commits on Sep 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fe37973 - Browse repository at this point
Copy the full SHA fe37973View commit details
Commits on Oct 7, 2023
-
aider: Added C:\Users\dan\github.com\danstis\ado-asana-sync\ado_asana…
…_sync\sync\app.py
Configuration menu - View commit details
-
Copy full SHA for aa6e379 - Browse repository at this point
Copy the full SHA aa6e379View commit details -
aider: Update the app class to set the OTEL_LOGS_EXPORTER, OTEL_METRI…
…CS_EXPORTER, and OTEL_TRACES_EXPORTER environment variables to None if the APPLICATIONINSIGHTS_CONNECTION_STRING is not populated. # Aider chat conversation: USER: update the app class to set the following environment variables to None if the APPLICATIONINSIGHTS_CONNECTION_STRING is not populated: OTEL_LOGS_EXPORTER, OTEL_METRICS_EXPORTER, OTEL_TRACES_EXPORTER ASSISTANT: To implement this change, we need to modify the `ado_asana_sync\sync\app.py` file. Specifically, we will update the `__init__` method of the `App` class to set the environment variables `OTEL_LOGS_EXPORTER`, `OTEL_METRICS_EXPORTER`, and `OTEL_TRACES_EXPORTER` to `None` if `APPLICATIONINSIGHTS_CONNECTION_STRING` is not populated. Here is the *edit block* for this change: ```python ado_asana_sync\sync\app.py <<<<<<< HEAD self.applicationinsights_connection_string = ( applicationinsights_connection_string or os.environ.get("APPLICATIONINSIGHTS_CONNECTION_STRING", None) ) self.ado_core_client = None self.ado_wit_client = None self.ado_work_client = None self.asana_client = None self.asana_page_size = ASANA_PAGE_SIZE self.asana_tag_gid = None self.asana_tag_name = ASANA_TAG_NAME self.db = None self.matches = None self.sleep_time = SLEEP_TIME ======= self.applicationinsights_connection_string = applicationinsights_connection_string or os.environ.get("APPLICATIONINSIGHTS_CONNECTION_STRING", None) if not self.applicationinsights_connection_string: os.environ["OTEL_LOGS_EXPORTER"] = None os.environ["OTEL_METRICS_EXPORTER"] = None os.environ["OTEL_TRACES_EXPORTER"] = None self.ado_core_client = None self.ado_wit_client = None self.ado_work_client = None self.asana_client = None self.asana_page_size = ASANA_PAGE_SIZE self.asana_tag_gid = None self.asana_tag_name = ASANA_TAG_NAME self.db = None self.matches = None self.sleep_time = SLEEP_TIME >>>>>>> updated ``` This change will ensure that the OpenTelemetry exporters are not set if the Application Insights connection string is not provided.
Configuration menu - View commit details
-
Copy full SHA for 530539c - Browse repository at this point
Copy the full SHA 530539cView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb30a23 - Browse repository at this point
Copy the full SHA eb30a23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b6d764 - Browse repository at this point
Copy the full SHA 0b6d764View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfcd6f3 - Browse repository at this point
Copy the full SHA cfcd6f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43059bc - Browse repository at this point
Copy the full SHA 43059bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 248cbf7 - Browse repository at this point
Copy the full SHA 248cbf7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c9eaf2 - Browse repository at this point
Copy the full SHA 4c9eaf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for d53a4fc - Browse repository at this point
Copy the full SHA d53a4fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6558b06 - Browse repository at this point
Copy the full SHA 6558b06View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1ac99d - Browse repository at this point
Copy the full SHA f1ac99dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cd8848 - Browse repository at this point
Copy the full SHA 6cd8848View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f03a14 - Browse repository at this point
Copy the full SHA 5f03a14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 043e87c - Browse repository at this point
Copy the full SHA 043e87cView commit details -
Configuration menu - View commit details
-
Copy full SHA for edd10e4 - Browse repository at this point
Copy the full SHA edd10e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1736044 - Browse repository at this point
Copy the full SHA 1736044View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1049a4 - Browse repository at this point
Copy the full SHA c1049a4View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.