Skip to content

Commit

Permalink
removed deprecated instrumentationKey. added bicep
Browse files Browse the repository at this point in the history
  • Loading branch information
ruoccofabrizio committed Jul 5, 2023
1 parent f28896d commit 165998f
Show file tree
Hide file tree
Showing 4 changed files with 1,555 additions and 844 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ CHUNK_OVERLAP=
OPENAI_DEPLOYMENT_TYPE=Chat
AzureWebJobsStorage=
QUEUE_NAME=
APPINSIGHTS_INSTRUMENTATIONKEY=
APPINSIGHTS_CONNECTIONSTRING=
5 changes: 1 addition & 4 deletions backend/utilities/QuestionHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
# Setting logging
load_dotenv()
logger = logging.getLogger(__name__)
instrumentation_key = (
f"InstrumentationKey={os.getenv('APPINSIGHTS_INSTRUMENTATIONKEY')}"
)
logger.addHandler(AzureLogHandler(connection_string=instrumentation_key))
logger.addHandler(AzureLogHandler(connection_string=os.getenv('APPINSIGHTS_CONNECTIONSTRING')))
logger.setLevel(logging.INFO)

class QuestionHandler:
Expand Down
Loading

0 comments on commit 165998f

Please sign in to comment.