Skip to content

Conversation

GSVarsha
Copy link
Contributor

@GSVarsha GSVarsha commented Sep 9, 2025

Fix the bug Immutable type, ignoring call to set attribute

[DEBUG]	2025-09-03T09:02:26.013Z	8ed186f7-0c6a-4407-815e-fb3bc2f5c277	Immutable type, ignoring call to set attribute
Stack (most recent call last):
  File "/var/runtime/bootstrap.py", line 60, in <module>
    main()
  File "/var/runtime/bootstrap.py", line 57, in main
    awslambdaricmain.main([os.environ["LAMBDA_TASK_ROOT"], os.environ["_HANDLER"]])
  File "/var/runtime/awslambdaric/__main__.py", line 21, in main
    bootstrap.run(app_root, handler, lambda_runtime_api_addr)
  File "/var/runtime/awslambdaric/bootstrap.py", line 529, in run
    handle_event_request(
  File "/var/runtime/awslambdaric/bootstrap.py", line 177, in handle_event_request
    response = request_handler(event, lambda_context)
  File "/opt/python/instana/__init__.py", line 146, in lambda_handler
    return handler_function(event, context)
  File "/opt/python/wrapt/wrappers.py", line 609, in __call__
    return self._self_wrapper(self.__wrapped__, self._self_instance,
  File "/opt/python/instana/instrumentation/aws/lambda_inst.py", line 67, in lambda_handler_with_instana
    agent.collector.shutdown()
  File "/opt/python/instana/collector/base.py", line 121, in shutdown
    self.prepare_and_report_data()
  File "/opt/python/instana/collector/base.py", line 151, in prepare_and_report_data
    self.agent.report_data_payload(payload)
  File "/opt/python/instana/agent/aws_lambda.py", line 73, in report_data_payload
    response = self.client.post(
  File "/opt/python/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "/opt/python/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/python/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/opt/python/requests/adapters.py", line 644, in send
    resp = conn.urlopen(
  File "/opt/python/wrapt/wrappers.py", line 670, in __call__
    return self._self_wrapper(self.__wrapped__, self._self_instance,
  File "/opt/python/instana/instrumentation/urllib3.py", line 132, in urlopen_with_instana
    tracer.inject(span.context, Format.HTTP_HEADERS, kwargs["headers"])
  File "/opt/python/instana/tracer.py", line 255, in inject
    return self._propagators[format].inject(
  File "/opt/python/instana/propagators/http_propagator.py", line 30, in inject
    span_context.level = min(child_level, span_context.level)
  File "/opt/python/opentelemetry/trace/span.py", line 500, in __setattr__
    _logger.debug(

@GSVarsha GSVarsha added this to the H2-2025 milestone Sep 9, 2025
@GSVarsha GSVarsha self-assigned this Sep 9, 2025
@GSVarsha GSVarsha requested a review from a team as a code owner September 9, 2025 11:25
@GSVarsha GSVarsha requested a review from CagriYonca September 10, 2025 10:05
Copy link
Contributor

@CagriYonca CagriYonca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GSVarsha GSVarsha force-pushed the fix-immutable-type-bug branch from 5ecabd1 to 92a10b8 Compare September 10, 2025 11:12
Copy link

@GSVarsha GSVarsha merged commit 1c6f5ec into main Sep 10, 2025
19 checks passed
@GSVarsha GSVarsha deleted the fix-immutable-type-bug branch September 10, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants